feat(nvim): use trouble for lsp definitions

This commit is contained in:
Price Hiller 2023-07-14 14:10:28 -05:00
parent 18a631e1d7
commit 808543fffd
No known key found for this signature in database

View File

@ -49,9 +49,7 @@ wk.register({
},
}, { prefix = "<leader>" })
vim.keymap.set("n", "<leader>lD", vim.lsp.buf.declaration, { silent = true, desc = "LSP: Declaration" })
vim.keymap.set("n", "<leader>ld", function()
vim.lsp.buf.definition({ reuse_win = true })
end, { silent = true, desc = "LSP: Definition" })
vim.keymap.set("n", "<leader>ld", "<cmd>TroubleToggle lsp_definitions<CR>", { 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.signature_help, { silent = true, desc = "LSP: Sig Help" })
vim.keymap.set(