1
0
Fork 0

feat: Enabled inlay type hints for ts_ls

This commit is contained in:
Tristan Russell 2026-05-08 06:52:53 -04:00
parent 9d55bbf1aa
commit 25c7e1fe04
Signed by: tristanr
GPG Key ID: 4495C92911DF04CA
1 changed files with 26 additions and 0 deletions

View File

@ -44,5 +44,31 @@ return {
Lua = {} Lua = {}
} }
}) })
vim.lsp.config("ts_ls", {
settings = {
typescript = {
inlayHints = {
includeInlayParameterNameHints = "none",
includeInlayVariableTypeHints = true,
includeInlayPropertyDeclarationTypeHints = true,
includeInlayFunctionLikeReturnTypeHints = true,
includeInlayFunctionParameterTypeHints = false,
includeInlayEnumMemberValueHints = true,
},
},
javascript = {
inlayHints = {
includeInlayParameterNameHints = "none",
includeInlayVariableTypeHints = true,
includeInlayPropertyDeclarationTypeHints = true,
includeInlayFunctionLikeReturnTypeHints = true,
includeInlayFunctionParameterTypeHints = false,
includeInlayEnumMemberValueHints = true,
},
},
},
})
vim.lsp.inlay_hint.enable(true)
end end
} }