feat(nvim): use trouble for lsp definitions
This commit is contained in:
parent
18a631e1d7
commit
808543fffd
@ -49,9 +49,7 @@ wk.register({
|
|||||||
},
|
},
|
||||||
}, { prefix = "<leader>" })
|
}, { prefix = "<leader>" })
|
||||||
vim.keymap.set("n", "<leader>lD", vim.lsp.buf.declaration, { silent = true, desc = "LSP: Declaration" })
|
vim.keymap.set("n", "<leader>lD", vim.lsp.buf.declaration, { silent = true, desc = "LSP: Declaration" })
|
||||||
vim.keymap.set("n", "<leader>ld", function()
|
vim.keymap.set("n", "<leader>ld", "<cmd>TroubleToggle lsp_definitions<CR>", { silent = true, desc = "LSP: Definition" })
|
||||||
vim.lsp.buf.definition({ reuse_win = true })
|
|
||||||
end, { silent = true, desc = "LSP: Definition" })
|
|
||||||
vim.keymap.set("n", "<leader>k", vim.lsp.buf.hover, { silent = true, desc = "LSP: Hover" })
|
vim.keymap.set("n", "<leader>k", vim.lsp.buf.hover, { silent = true, desc = "LSP: Hover" })
|
||||||
vim.keymap.set("n", "<leader>K", vim.lsp.buf.signature_help, { silent = true, desc = "LSP: Sig Help" })
|
vim.keymap.set("n", "<leader>K", vim.lsp.buf.signature_help, { silent = true, desc = "LSP: Sig Help" })
|
||||||
vim.keymap.set(
|
vim.keymap.set(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user