commit 063550ca306774c1ebec32327c5cce7a9cbbefb2
parent 2105b60551409e4a2c6b254d244d0ee33f250169
Author: Thomas Vigouroux <thomas.vigouroux@protonmail.com>
Date: Mon, 22 Aug 2022 14:58:19 +0200
feat(lsp): use LSP tagfunc when possible
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/lua/lsp_config.lua b/lua/lsp_config.lua
@@ -62,6 +62,8 @@ local function on_attach(client, bufnr)
set_keymap('gR', require "telescope.builtin".lsp_references)
set_keymap('<Leader>s', require "telescope.builtin".lsp_dynamic_workspace_symbols)
+ vim.opt_local.tagfunc = vim.lsp.tagfunc
+
local f = nil
for _, path in pairs(vim.lsp.buf.list_workspace_folders()) do
if #path > 0 and path ~= vim.fn.expand("$HOME") then