diff options
| author | Emilio Ziniades <emilioziniades@protonmail.com> | 2023-11-19 10:08:17 +0200 |
|---|---|---|
| committer | Emilio Ziniades <emilioziniades@protonmail.com> | 2023-11-19 10:37:52 +0200 |
| commit | 06ef012906f14ecdec174a77f5dec33f4691fa92 (patch) | |
| tree | b69aaa0e1a7c67c5e165574aa9ee3908b43705b9 /lua/lspconfig/server_configurations/custom_elements_ls.lua | |
| parent | fix(cairo_ls): update root_dir (diff) | |
| download | nvim-lspconfig-06ef012906f14ecdec174a77f5dec33f4691fa92.tar nvim-lspconfig-06ef012906f14ecdec174a77f5dec33f4691fa92.tar.gz nvim-lspconfig-06ef012906f14ecdec174a77f5dec33f4691fa92.tar.bz2 nvim-lspconfig-06ef012906f14ecdec174a77f5dec33f4691fa92.tar.lz nvim-lspconfig-06ef012906f14ecdec174a77f5dec33f4691fa92.tar.xz nvim-lspconfig-06ef012906f14ecdec174a77f5dec33f4691fa92.tar.zst nvim-lspconfig-06ef012906f14ecdec174a77f5dec33f4691fa92.zip | |
fix(custom_elements_ls): update root_dir
Diffstat (limited to 'lua/lspconfig/server_configurations/custom_elements_ls.lua')
| -rw-r--r-- | lua/lspconfig/server_configurations/custom_elements_ls.lua | 7 |
1 files changed, 2 insertions, 5 deletions
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")]], }, }, } |
