aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreug-vs <eugene@eug-vs.xyz>2024-05-29 18:18:48 +0200
committereug-vs <eugene@eug-vs.xyz>2024-05-29 18:18:48 +0200
commit4d1414006ddf45890cfba6b4cc657f3088e08d71 (patch)
tree6edcb915eb814f564bf2bee681335870a53f648a
parent34db1af79d5e4db987bc8c3572821c60c99a17a8 (diff)
downloaddotfiles-4d1414006ddf45890cfba6b4cc657f3088e08d71.tar.gz
fix(nvim): do not duplicate typescript LSP
-rw-r--r--nvim/.config/nvim/lua/plugins/lsp-config.lua8
1 files changed, 7 insertions, 1 deletions
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('<leader>rn', vim.lsp.buf.rename, '[R]e[n]ame')
map('<leader>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