From fe4b92492ca1c8bba826609ed2c34fd927068e0e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ph=C3=BAc=20L=C3=AA=20Kh=E1=BA=AFc?= Date: Wed, 18 Jan 2023 14:37:06 +0700 Subject: [PATCH] fix(lsp): there is no declaration in telescope, use vim.lsp (#78) --- 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 1b704ab0..d7ed546f 100644 --- a/lua/lazyvim/plugins/lsp/keymaps.lua +++ b/lua/lazyvim/plugins/lsp/keymaps.lua @@ -7,7 +7,7 @@ function M.on_attach(client, buffer) self:map("cl", "LspInfo", { desc = "Lsp Info" }) self:map("gd", "Telescope lsp_definitions", { desc = "Goto Definition" }) self:map("gr", "Telescope lsp_references", { desc = "References" }) - self:map("gD", "Telescope lsp_declarations", { desc = "Goto Declaration" }) + self:map("gD", vim.lsp.buf.declaration, { desc = "Goto Declaration" }) self:map("gI", "Telescope lsp_implementations", { desc = "Goto Implementation" }) self:map("gt", "Telescope lsp_type_definitions", { desc = "Goto Type Definition" }) self:map("K", vim.lsp.buf.hover, { desc = "Hover" })