use known mappings for lsp (some)

This commit is contained in:
Thomas Ruoff
2025-06-04 08:09:31 +02:00
parent fca58caaae
commit b3315916fb

View File

@@ -62,11 +62,11 @@ return {
-- Rename the variable under your cursor.
-- Most Language Servers support renaming across files, etc.
map('grn', vim.lsp.buf.rename, '[R]e[n]ame')
map('<space>r', vim.lsp.buf.rename, '[R]e[n]ame')
-- 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('<space>ca', vim.lsp.buf.code_action, '[G]oto Code [A]ction', { 'n', 'x' })
-- Find references for the word under your cursor.
map('grr', Snacks.picker.lsp_references, '[G]oto [R]eferences')