aboutsummaryrefslogtreecommitdiff
path: root/nvim
diff options
context:
space:
mode:
Diffstat (limited to 'nvim')
-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