From a6acd2dfc29e6e3d2f4dd32803260fc74779d075 Mon Sep 17 00:00:00 2001 From: Thomas Schmucker Date: Thu, 12 Mar 2026 07:49:21 +0100 Subject: Neovim: Benutze vtsls als Typescript-LSP --- nvim/lua/plugins/lsp.lua | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) (limited to 'nvim/lua') diff --git a/nvim/lua/plugins/lsp.lua b/nvim/lua/plugins/lsp.lua index 717a81f..50ec6c1 100644 --- a/nvim/lua/plugins/lsp.lua +++ b/nvim/lua/plugins/lsp.lua @@ -42,19 +42,21 @@ return { capabilities = capabilities, } - vim.lsp.config.ts_ls = { + vim.lsp.config.vtsls = { capabilities = capabilities, settings = { typescript = { - inlayHints = { - includeInlayParameterNameHints = "all", - includeInlayVariableTypeHints = true, - includeInlayFunctionLikeReturnTypeHints = true, + updateImportsOnFileMove = { enabled = "always" }, + suggest = { + completeFunctionCalls = true, }, - }, - javascript = { inlayHints = { - includeInlayParameterNameHints = "all", + enumMemberValues = { enabled = true }, + functionLikeReturnTypes = { enabled = true }, + parameterNames = { enabled = "all" }, + parameterTypes = { enabled = true }, + propertyDeclarationTypes = { enabled = true }, + variableTypes = { enabled = false }, }, }, }, @@ -83,7 +85,7 @@ return { "clangd", -- pkg install llvm "lua_ls", -- pkg install lua-language-server "prismals", -- npm install -g @prisma/language-server - "ts_ls", -- npm install -g typescript typescript-language-server + "vtsls", -- npm install -g @vtsls/language-server }) end, }, -- cgit v1.3