Files
dotfiles/common/.config/nvim/lsp/ts_ls.lua
Pratik Tripathy 3be53f130a fix(neovim): Blank to default lsp configurations
- Configuration for files under `/lsp` are added
2025-09-01 11:54:16 +05:30

39 lines
1.4 KiB
Lua

return {
cmd = { "typescript-language-server", "--stdio" },
filetypes = {
"typescript",
"typescriptreact",
"typescript.txt",
"javascript",
"javascriptreact",
"javascript.jsx",
},
root_markers = { "package.json", "tsconfig.json", ".git" },
settings = {
typescript = {
updateImportOnFileMove = { enabled = "always" },
suggest = { completeFunctionCalls = true },
inlayHints = {
includeInlayParameterNameHints = "all",
includeInlayParameterNameHintsWhenArgumentMatchesName = false,
includeInlayFunctionParameterTypeHints = true,
includeInlayVariableTypeHints = true,
includeInlayPropertyDeclarationTypeHints = true,
includeInlayFunctionLikeReturnTypeHints = true,
includeInlayEnumMemberValueHints = true,
},
},
javascript = {
inlayHints = {
includeInlayParameterNameHints = "all",
includeInlayParameterNameHintsWhenArgumentMatchesName = false,
includeInlayFunctionParameterTypeHints = true,
includeInlayVariableTypeHints = true,
includeInlayPropertyDeclarationTypeHints = true,
includeInlayFunctionLikeReturnTypeHints = true,
includeInlayEnumMemberValueHints = true,
},
},
},
}