From c205d3e6c19260654154633f561fd93c02911c89 Mon Sep 17 00:00:00 2001 From: Alexander Born Date: Tue, 28 Feb 2023 10:12:32 +0100 Subject: [PATCH] Only map lsp go definition when client has definitionProvider --- lua/lazyvim/plugins/lsp/keymaps.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/lazyvim/plugins/lsp/keymaps.lua b/lua/lazyvim/plugins/lsp/keymaps.lua index e47bf464..e221cfcf 100644 --- a/lua/lazyvim/plugins/lsp/keymaps.lua +++ b/lua/lazyvim/plugins/lsp/keymaps.lua @@ -12,7 +12,7 @@ function M.get() M._keys = { { "cd", vim.diagnostic.open_float, desc = "Line Diagnostics" }, { "cl", "LspInfo", desc = "Lsp Info" }, - { "gd", "Telescope lsp_definitions", desc = "Goto Definition" }, + { "gd", "Telescope lsp_definitions", desc = "Goto Definition", has = "definition" }, { "gr", "Telescope lsp_references", desc = "References" }, { "gD", vim.lsp.buf.declaration, desc = "Goto Declaration" }, { "gI", "Telescope lsp_implementations", desc = "Goto Implementation" },