From 0bbe8253444a2894b6c45ce990ed44a61ab764ad Mon Sep 17 00:00:00 2001 From: Emilio Ziniades Date: Sun, 19 Nov 2023 10:07:05 +0200 Subject: fix(cairo_ls): update root_dir --- lua/lspconfig/server_configurations/cairo_ls.lua | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'lua/lspconfig/server_configurations/cairo_ls.lua') 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")]], }, }, } -- cgit v1.2.3-70-g09d2