aboutsummaryrefslogtreecommitdiff
path: root/nvim
diff options
context:
space:
mode:
authorThomas Schmucker <ts@its1.de>2026-03-12 07:49:21 +0100
committerThomas Schmucker <ts@its1.de>2026-03-12 07:49:21 +0100
commita6acd2dfc29e6e3d2f4dd32803260fc74779d075 (patch)
tree9665e21289ce24b0fdc34bd258d578655249f2d2 /nvim
parent345feb68e83fdcfca389135003a42f6c3ff1a59a (diff)
downloaddotfiles-a6acd2dfc29e6e3d2f4dd32803260fc74779d075.tar.gz
dotfiles-a6acd2dfc29e6e3d2f4dd32803260fc74779d075.tar.bz2
dotfiles-a6acd2dfc29e6e3d2f4dd32803260fc74779d075.zip
Neovim: Benutze vtsls als Typescript-LSP
Diffstat (limited to 'nvim')
-rw-r--r--nvim/lua/plugins/lsp.lua20
1 files changed, 11 insertions, 9 deletions
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 {
42 capabilities = capabilities, 42 capabilities = capabilities,
43 } 43 }
44 44
45 vim.lsp.config.ts_ls = { 45 vim.lsp.config.vtsls = {
46 capabilities = capabilities, 46 capabilities = capabilities,
47 settings = { 47 settings = {
48 typescript = { 48 typescript = {
49 inlayHints = { 49 updateImportsOnFileMove = { enabled = "always" },
50 includeInlayParameterNameHints = "all", 50 suggest = {
51 includeInlayVariableTypeHints = true, 51 completeFunctionCalls = true,
52 includeInlayFunctionLikeReturnTypeHints = true,
53 }, 52 },
54 },
55 javascript = {
56 inlayHints = { 53 inlayHints = {
57 includeInlayParameterNameHints = "all", 54 enumMemberValues = { enabled = true },
55 functionLikeReturnTypes = { enabled = true },
56 parameterNames = { enabled = "all" },
57 parameterTypes = { enabled = true },
58 propertyDeclarationTypes = { enabled = true },
59 variableTypes = { enabled = false },
58 }, 60 },
59 }, 61 },
60 }, 62 },
@@ -83,7 +85,7 @@ return {
83 "clangd", -- pkg install llvm 85 "clangd", -- pkg install llvm
84 "lua_ls", -- pkg install lua-language-server 86 "lua_ls", -- pkg install lua-language-server
85 "prismals", -- npm install -g @prisma/language-server 87 "prismals", -- npm install -g @prisma/language-server
86 "ts_ls", -- npm install -g typescript typescript-language-server 88 "vtsls", -- npm install -g @vtsls/language-server
87 }) 89 })
88 end, 90 end,
89 }, 91 },