From a87cb51ee3b4f31cae6b3ad7f4339a00d6df634f Mon Sep 17 00:00:00 2001 From: ViViDboarder Date: Tue, 21 Jan 2025 14:25:53 -0800 Subject: [PATCH] Use lsp for t tag search --- neovim/lua/plugins/lsp.lua | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/neovim/lua/plugins/lsp.lua b/neovim/lua/plugins/lsp.lua index dfda46e..43d1d02 100644 --- a/neovim/lua/plugins/lsp.lua +++ b/neovim/lua/plugins/lsp.lua @@ -128,6 +128,13 @@ function M.get_default_attach(override_capabilities) local telescope_keymap = utils.curry_keymap("n", "f", { buffer = bufnr, group_desc = "Finder" }) if server_capabilities.documentSymbolProvider then telescope_keymap("t", telescope_builtin.lsp_document_symbols, { desc = "Find buffer tags" }) + -- Also override the default tag finder + utils.keymap_set( + "n", + "t", + telescope_builtin.lsp_document_symbols, + { desc = "Find buffer tags" } + ) end if server_capabilities.workspaceSymbolProvider then telescope_keymap("T", telescope_builtin.lsp_dynamic_workspace_symbols, { desc = "Find tags" })