Skip to content

Commit

Permalink
fix(vtsls): update root_dir
Browse files Browse the repository at this point in the history
  • Loading branch information
emilioziniades committed Nov 19, 2023
1 parent 4d0dcba commit f8fbbf4
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions lua/lspconfig/server_configurations/vtsls.lua
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,7 @@ return {
'typescriptreact',
'typescript.tsx',
},
root_dir = function(fname)
return util.root_pattern 'tsconfig.json'(fname)
or util.root_pattern('package.json', 'jsconfig.json', '.git')(fname)
end,
root_dir = util.root_pattern('tsconfig.json', 'package.json', 'jsconfig.json', '.git'),
single_file_support = true,
},
docs = {
Expand All @@ -32,7 +29,7 @@ or [`jsconfig.json`](https://code.visualstudio.com/docs/languages/jsconfig) to
the root of your project.
]],
default_config = {
root_dir = [[root_pattern("package.json", "tsconfig.json", "jsconfig.json", ".git")]],
root_dir = [[root_pattern("tsconfig.json", "package.json", "jsconfig.json", ".git")]],
},
},
}

0 comments on commit f8fbbf4

Please sign in to comment.