fix(lsp): only map lsp goto definition when client has definitionProvider (#348)

Co-authored-by: Alexander Born <alexander.born@bmw.de>
This commit is contained in:
alexander-born
2023-02-28 11:29:57 +01:00
committed by GitHub
parent 4b37723558
commit 5abb10b5ab

View File

@ -12,7 +12,7 @@ function M.get()
M._keys = {
{ "<leader>cd", vim.diagnostic.open_float, desc = "Line Diagnostics" },
{ "<leader>cl", "<cmd>LspInfo<cr>", desc = "Lsp Info" },
{ "gd", "<cmd>Telescope lsp_definitions<cr>", desc = "Goto Definition" },
{ "gd", "<cmd>Telescope lsp_definitions<cr>", desc = "Goto Definition", has = "definition" },
{ "gr", "<cmd>Telescope lsp_references<cr>", desc = "References" },
{ "gD", vim.lsp.buf.declaration, desc = "Goto Declaration" },
{ "gI", "<cmd>Telescope lsp_implementations<cr>", desc = "Goto Implementation" },