Add commands for using/navigating "lsp references"
This commit is contained in:
parent
93d7caa169
commit
3e3d635d6b
1 changed files with 3 additions and 0 deletions
|
@ -140,6 +140,9 @@ vim.api.nvim_set_keymap("n", "<leader>D", "<cmd>lua vim.lsp.buf.declaration()<CR
|
|||
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})
|
||||
vim.api.nvim_set_keymap("n", "<leader>rr", "<cmd>lua vim.lsp.buf.references()<CR>", {noremap = true})
|
||||
vim.api.nvim_set_keymap("n", "<leader>rn", "<cmd>cn<CR>", {noremap = true})
|
||||
vim.api.nvim_set_keymap("n", "<leader>rp", "<cmd>cp<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