You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
1.1 KiB
41 lines
1.1 KiB
local blink = require("blink.cmp") |
|
|
|
return { |
|
cmd = { "typescript-language-server", "--stdio" }, |
|
filetypes = { |
|
"javascript", |
|
"javascriptreact", |
|
"javascript.jsx", |
|
"typescript", |
|
"typescriptreact", |
|
"typescript.tsx", |
|
-- "vue" |
|
}, |
|
root_markers = { "tsconfig.json", "jsconfig.json", "package.json", ".git" }, |
|
settings = { |
|
typescript = { |
|
tsserver = { |
|
useSyntaxServer = false, |
|
}, |
|
inlayHints = { |
|
includeInlayParameterNameHints = "all", |
|
includeInlayParameterNameHintsWhenArgumentMatchesName = true, |
|
includeInlayFunctionParameterTypeHints = true, |
|
includeInlayVariableTypeHints = true, |
|
includeInlayVariableTypeHintsWhenTypeMatchesName = true, |
|
includeInlayPropertyDeclarationTypeHints = true, |
|
includeInlayFunctionLikeReturnTypeHints = true, |
|
includeInlayEnumMemberValueHints = true, |
|
}, |
|
includeCompletionsForModuleExports = true, |
|
quotePreference = "auto", |
|
}, |
|
javascript = {}, |
|
}, |
|
capabilities = vim.tbl_deep_extend( |
|
"force", |
|
{}, |
|
vim.lsp.protocol.make_client_capabilities(), |
|
blink.get_lsp_capabilities() |
|
), |
|
}
|
|
|