From afd64417f2f8ca09e9965268dba6604e06e4a7b3 Mon Sep 17 00:00:00 2001 From: Emilio Ziniades Date: Sun, 19 Nov 2023 10:24:01 +0200 Subject: fix(vtsls): update root_dir --- lua/lspconfig/server_configurations/vtsls.lua | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'lua') diff --git a/lua/lspconfig/server_configurations/vtsls.lua b/lua/lspconfig/server_configurations/vtsls.lua index ee162789..050052f7 100644 --- a/lua/lspconfig/server_configurations/vtsls.lua +++ b/lua/lspconfig/server_configurations/vtsls.lua @@ -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 = { @@ -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")]], }, }, } -- cgit v1.2.3-70-g09d2