Add jj/kitty/nvim/opencode/paru/fish/yazi/jjui
This commit is contained in:
35
nvim/files/lsp/vtsls.lua
Normal file
35
nvim/files/lsp/vtsls.lua
Normal file
@@ -0,0 +1,35 @@
|
||||
return {
|
||||
cmd = { "vtsls", "--stdio" },
|
||||
filetypes = { "javascript", "javascriptreact", "typescript", "typescriptreact" },
|
||||
-- Use .git to find monorepo root so vtsls indexes ALL packages
|
||||
root_markers = { ".git" },
|
||||
-- Reuse client across projects for cross-package references
|
||||
reuse_client = function(client, config)
|
||||
return client.name == config.name
|
||||
end,
|
||||
settings = {
|
||||
vtsls = {
|
||||
autoWorkspaceCache = true, -- Helps index the workspace in the background
|
||||
tsserver = {
|
||||
maxMemory = 8192, -- Give it 8GB of RAM for large projects
|
||||
globalPlugins = {
|
||||
{
|
||||
name = "typescript-svelte-plugin",
|
||||
location = vim.fn.stdpath("data")
|
||||
.. "/mason/packages/svelte-language-server/node_modules/typescript-svelte-plugin",
|
||||
enableForWorkspaceTypeScriptVersions = true,
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
typescript = {
|
||||
tsserver = {
|
||||
maxTsServerMemory = 8192,
|
||||
},
|
||||
},
|
||||
},
|
||||
commands = {
|
||||
-- Suppress "does not support command" notification for organize imports
|
||||
["_typescript.didOrganizeImports"] = function() end,
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user