From 06ef012906f14ecdec174a77f5dec33f4691fa92 Mon Sep 17 00:00:00 2001 From: Emilio Ziniades Date: Sun, 19 Nov 2023 10:08:17 +0200 Subject: fix(custom_elements_ls): update root_dir --- lua/lspconfig/server_configurations/custom_elements_ls.lua | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'lua') diff --git a/lua/lspconfig/server_configurations/custom_elements_ls.lua b/lua/lspconfig/server_configurations/custom_elements_ls.lua index cc2b2ca2..e71d7f8b 100644 --- a/lua/lspconfig/server_configurations/custom_elements_ls.lua +++ b/lua/lspconfig/server_configurations/custom_elements_ls.lua @@ -4,10 +4,7 @@ return { default_config = { init_options = { hostInfo = 'neovim' }, cmd = { 'custom-elements-languageserver', '--stdio' }, - 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'), }, docs = { description = [[ @@ -36,7 +33,7 @@ Here's an example that disables type checking in JavaScript files. ``` ]], 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