mirror of
https://github.com/tomru/nvim.git
synced 2026-03-03 06:27:14 +01:00
use known mappings for lsp (some)
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user