diff options
Diffstat (limited to 'lua/lspconfig/server_configurations/cairo_ls.lua')
| -rw-r--r-- | lua/lspconfig/server_configurations/cairo_ls.lua | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/lua/lspconfig/server_configurations/cairo_ls.lua b/lua/lspconfig/server_configurations/cairo_ls.lua index dfdab914..e79b34ae 100644 --- a/lua/lspconfig/server_configurations/cairo_ls.lua +++ b/lua/lspconfig/server_configurations/cairo_ls.lua @@ -8,10 +8,7 @@ return { init_options = { hostInfo = 'neovim' }, cmd = cmd, filetypes = { 'cairo' }, - root_dir = function(fname) - return util.root_pattern 'Scarb.toml'(fname) - or util.root_pattern('Scarb.toml', 'cairo_project.toml', '.git')(fname) - end, + root_dir = util.root_pattern('Scarb.toml', 'cairo_project.toml', '.git'), }, docs = { description = [[ @@ -27,7 +24,7 @@ require'lspconfig'.cairo_ls.setup{} *cairo-language-server is still under active development, some features might not work yet !* ]], default_config = { - root_dir = [[root_pattern("package.json", "tsconfig.json", "jsconfig.json", ".git")]], + root_dir = [[root_pattern("Scarb.toml", "cairo_project.toml", ".git")]], }, }, } |
