set rename keybinding

This commit is contained in:
Nick Burt 2026-07-01 15:10:58 -05:00
parent eb65659eee
commit 6c6003453a
1 changed files with 3 additions and 2 deletions

View File

@ -379,6 +379,7 @@ do
{ 'gr', group = 'LSP Actions', mode = { 'n' } }, { 'gr', group = 'LSP Actions', mode = { 'n' } },
{ '<leader>g', group = '[G]it' }, { '<leader>g', group = '[G]it' },
{ '<leader>n', group = '[N]otepad' }, { '<leader>n', group = '[N]otepad' },
{ '<leader>r', group = '[R]e[N]ame' },
}, },
} }
@ -650,9 +651,9 @@ do
-- Rename the variable under your cursor. -- Rename the variable under your cursor.
-- Most Language Servers support renaming across files, etc. -- Most Language Servers support renaming across files, etc.
map('grn', vim.lsp.buf.rename, '[R]e[n]ame') map('<leader>rn', vim.lsp.buf.rename, '[R]e[n]ame')
-- Execute a code action, usually your cursor needs to be on top of an error -- 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. -- 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('gra', vim.lsp.buf.code_action, '[G]oto Code [A]ction', { 'n', 'x' })