✨ feat(lsp): add typescript-language-server setup with inlay hints configuration

This commit is contained in:
sankalp committed 2025-07-25 15:59:35 +05:45
1 parent 0c91219c95
commit 611b21c847
2 files changed
+28 -8

No files matched your search

+28
View File
@@ -0,0 +1,28 @@
return {
settings = {
typescript = {
inlayHints = {
includeInlayParameterNameHints = 'all',
includeInlayParameterNameHintsWhenArgumentMatchesName = false,
includeInlayFunctionParameterTypeHints = true,
includeInlayVariableTypeHints = true,
includeInlayVariableTypeHintsWhenTypeMatchesName = false,
includeInlayPropertyDeclarationTypeHints = true,
includeInlayFunctionLikeReturnTypeHints = true,
includeInlayEnumMemberValueHints = true,
},
},
javascript = {
inlayHints = {
includeInlayParameterNameHints = 'all',
includeInlayParameterNameHintsWhenArgumentMatchesName = false,
includeInlayFunctionParameterTypeHints = true,
includeInlayVariableTypeHints = true,
includeInlayVariableTypeHintsWhenTypeMatchesName = false,
includeInlayPropertyDeclarationTypeHints = true,
includeInlayFunctionLikeReturnTypeHints = true,
includeInlayEnumMemberValueHints = true,
},
},
},
}
-8
View File
@@ -1,8 +0,0 @@
return {
cmd = { 'typescript-language-server', '--stdio' },
root_markers = { 'tsconfig.json', 'jsconfig.json', 'package.json', '.git' },
filetypes = { 'javascript', 'javascriptreact', 'javascript.jsx', 'typescript', 'typescriptreact', 'typescript.tsx' },
init_options = {
hostInfo = 'neovim',
},
}