diff options
feat: enable LSP inlay hints in `typescript-language-server`
Diffstat (limited to '')
-rw-r--r-- | lsp/typescript-language-server.lua | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/lsp/typescript-language-server.lua b/lsp/typescript-language-server.lua index 1cf6661..41a3110 100644 --- a/lsp/typescript-language-server.lua +++ b/lsp/typescript-language-server.lua @@ -9,4 +9,31 @@ return { "typescriptreact", "typescript.tsx", }, + settings = { + typescript = { + inlayHints = { + includeInlayParameterNameHints = "all", + includeInlayParameterNameHintsWhenArgumentMatchesName = true, + includeInlayVariableTypeHints = true, + includeInlayFunctionParameterTypeHints = true, + includeInlayVariableTypeHintsWhenTypeMatchesName = true, + includeInlayPropertyDeclarationTypeHints = true, + includeInlayFunctionLikeReturnTypeHints = true, + includeInlayEnumMemberValueHints = true, + }, + }, + javascript = { + inlayHints = { + includeInlayParameterNameHints = "all", + includeInlayParameterNameHintsWhenArgumentMatchesName = true, + includeInlayVariableTypeHints = true, + + includeInlayFunctionParameterTypeHints = true, + includeInlayVariableTypeHintsWhenTypeMatchesName = true, + includeInlayPropertyDeclarationTypeHints = true, + includeInlayFunctionLikeReturnTypeHints = true, + includeInlayEnumMemberValueHints = true, + }, + }, + }, } |