diff options
| -rw-r--r-- | nvim/lua/plugins/lsp.lua | 20 |
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 | }, |
