diff --git a/init.lua b/init.lua index 25c52ddc..9e49f3d6 100644 --- a/init.lua +++ b/init.lua @@ -379,7 +379,9 @@ do { 'gr', group = 'LSP Actions', mode = { 'n' } }, { 'g', group = '[G]it' }, { 'n', group = '[N]otepad' }, - { 'r', group = '[R]e[N]ame' }, + { 'r', group = '[R]e[N]ame', mode = { 'n' } }, + { 'c', group = 'LSP: [C]ode', mode = { 'n' } }, + { 'cg', group = 'LSP: [G]oto', mode = { 'n' } }, }, } @@ -655,11 +657,11 @@ do -- Execute a code action, usually your cursor needs to be on top of an error -- or a suggestion from your LSP for this to activate. - map('gra', vim.lsp.buf.code_action, '[G]oto Code [A]ction', { 'n', 'x' }) + map('ca', vim.lsp.buf.code_action, '[C]ode [A]ction', { 'n', 'x' }) -- WARN: This is not Goto Definition, this is Goto Declaration. -- For example, in C this would take you to the header. - map('grD', vim.lsp.buf.declaration, '[G]oto [D]eclaration') + map('cgD', vim.lsp.buf.declaration, '[G]oto [D]eclaration') -- The following two autocommands are used to highlight references of the -- word under your cursor when your cursor rests there for a little while.