From 11dcc20d71208c53acc6ccb69a5b5ef4bb99aea5 Mon Sep 17 00:00:00 2001 From: Andy Teijelo Date: Tue, 16 Jul 2024 12:07:09 -0400 Subject: [PATCH] switch from vtsls to tsserver --- lua/plugins/lsp.lua | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/lua/plugins/lsp.lua b/lua/plugins/lsp.lua index fcdfb34..684de0d 100644 --- a/lua/plugins/lsp.lua +++ b/lua/plugins/lsp.lua @@ -22,6 +22,12 @@ return { rust_analyzer = function() return true end, + tsserver = function() + return false + end, + vtsls = function() + return true + end, }, servers = { yamlls = { @@ -48,6 +54,24 @@ return { }, }, }, + vtsls = { enabled = false }, + tsserver = { + enabled = true, + settings = { + typescript = { + inlayHints = { + includeInlayEnumMemberValueHints = true, + includeInlayFunctionLikeReturnTypeHints = true, + includeInlayFunctionParameterTypeHints = true, + includeInlayParameterNameHints = "literals", + includeInlayParameterNameHintsWhenArgumentMatchesName = false, + includeInlayPropertyDeclarationTypeHints = true, + includeInlayVariableTypeHints = false, + includeInlayVariableTypeHintsWhenTypeMatchesName = false, + }, + }, + }, + }, }, }, },