From 2fe1e0e5209edc66e896077fd4d368ec43e5911b Mon Sep 17 00:00:00 2001 From: Thomas Schmucker Date: Wed, 14 Jan 2026 15:55:59 +0100 Subject: neovim: Bneutzer wieder ts_ls als LSP --- nvim/lua/plugins/lsp.lua | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) (limited to 'nvim') diff --git a/nvim/lua/plugins/lsp.lua b/nvim/lua/plugins/lsp.lua index 17ca039..825ffb6 100644 --- a/nvim/lua/plugins/lsp.lua +++ b/nvim/lua/plugins/lsp.lua @@ -38,8 +38,22 @@ return { capabilities = capabilities, } - vim.lsp.config.tsserver = { + vim.lsp.config.ts_ls = { capabilities = capabilities, + settings = { + typescript = { + inlayHints = { + includeInlayParameterNameHints = "all", + includeInlayVariableTypeHints = true, + includeInlayFunctionLikeReturnTypeHints = true, + }, + }, + javascript = { + inlayHints = { + includeInlayParameterNameHints = "all", + }, + }, + }, } vim.lsp.config.pyright = { @@ -59,7 +73,7 @@ return { "bashls", -- npm install -g bash-language-server, pkg install hs-ShellCheck "clangd", -- pkg install llvm "lua_ls", -- pkg install lua-language-server - "tsserver", -- npm install -g typescript typescript-language-server + "ts_ls", -- npm install -g typescript typescript-language-server "pyright", -- npm install -g pyright, brew install pyright }) end, -- cgit v1.3