From ddf526713d0f82f001d8d59c5af8876d0c1753fe Mon Sep 17 00:00:00 2001 From: Stefan Weigl-Bosker Date: Thu, 10 Apr 2025 03:04:54 -0400 Subject: update --- modules/neovim/nvim/lua/config/lsp/init.lua | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'modules/neovim/nvim/lua/config/lsp/init.lua') diff --git a/modules/neovim/nvim/lua/config/lsp/init.lua b/modules/neovim/nvim/lua/config/lsp/init.lua index f4092ff..2de2d22 100644 --- a/modules/neovim/nvim/lua/config/lsp/init.lua +++ b/modules/neovim/nvim/lua/config/lsp/init.lua @@ -41,6 +41,8 @@ end vim.api.nvim_create_autocmd("LspAttach", { callback = function(args) local client = vim.lsp.get_client_by_id(args.data.client_id) + client.server_capabilities.semanticTokensProvider = nil + vim.keymap.set('n', 'grr', function() vim.lsp.buf.references() end, { desc = "Code references (LSP)" }) @@ -67,6 +69,10 @@ vim.api.nvim_create_autocmd("LspAttach", { callback = function(args) end, { expr = true }) end + -- if client:supports_method(methods.textDocument_semanticTokens) then + -- end + + vim.keymap.set('n', 'E', 'lua vim.lsp.buf.hover()', { silent = true }) -- if client:supports_method(methods.textDocument_inlayHint) then -- vim.lsp.inlay_hint.enable() -- cgit v1.2.3