Add lsp keybinding "<leader>r" for get-references
This commit is contained in:
parent
354ed23291
commit
93d7caa169
1 changed files with 2 additions and 0 deletions
|
@ -138,6 +138,8 @@ vim.api.nvim_set_keymap("n", "<C-A>", "<cmd>lua vim.lsp.buf.code_action()<CR>",
|
|||
vim.api.nvim_set_keymap("n", "<leader>D", "<cmd>lua vim.lsp.buf.declaration()<CR>", {noremap = true})
|
||||
-- get lsp definition
|
||||
vim.api.nvim_set_keymap("n", "<leader>d", "<cmd>lua vim.lsp.buf.definition()<CR>", {noremap = true})
|
||||
-- get lsp references
|
||||
vim.api.nvim_set_keymap("n", "<leader>r", "<cmd>lua vim.lsp.buf.references()<CR>", {noremap = true})
|
||||
-- goto next warning/error
|
||||
--vim.api.nvim_set_keymap("n", "<C-N>", "<cmd>lua vim.lsp.diagnostic.goto_next()<CR>", {noremap = true})
|
||||
vim.api.nvim_set_keymap("n", "<C-N>", "<cmd>lua vim.diagnostic.goto_next()<CR>", {noremap = true})
|
||||
|
|
Loading…
Reference in a new issue