From 4d1414006ddf45890cfba6b4cc657f3088e08d71 Mon Sep 17 00:00:00 2001 From: eug-vs Date: Wed, 29 May 2024 18:18:48 +0200 Subject: fix(nvim): do not duplicate typescript LSP --- nvim/.config/nvim/lua/plugins/lsp-config.lua | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/nvim/.config/nvim/lua/plugins/lsp-config.lua b/nvim/.config/nvim/lua/plugins/lsp-config.lua index 19c408b..d2c2168 100644 --- a/nvim/.config/nvim/lua/plugins/lsp-config.lua +++ b/nvim/.config/nvim/lua/plugins/lsp-config.lua @@ -21,6 +21,7 @@ return { end map('gd', require('telescope.builtin').lsp_definitions, '[G]oto [D]efinition') + map('gr', require('telescope.builtin').lsp_references, '[G]oto [R]eferences') map('rn', vim.lsp.buf.rename, '[R]e[n]ame') map('ca', vim.lsp.buf.code_action, '[C]ode [A]ction') map('K', vim.lsp.buf.hover, 'Hover Documentation') @@ -50,7 +51,7 @@ return { -- tsserver = {}, -- - tsserver = {}, + -- tsserver = {}, eslint = {}, tailwindcss = {}, prismals = {}, @@ -84,8 +85,13 @@ return { require('mason-tool-installer').setup { ensure_installed = ensure_installed } require('mason-lspconfig').setup { + handlers = { function(server_name) + -- WARN: remove this if migrating off of typescript-tools.nvim + if server_name == 'tsserver' then + return + end local server = servers[server_name] or {} -- This handles overriding only values explicitly passed -- by the server configuration above. Useful when disabling -- cgit v1.2.3