From d006e0c5aebfd9f820eb91eb74e2fc80fcff7436 Mon Sep 17 00:00:00 2001 From: Tristan Yang Date: Wed, 6 Mar 2024 13:35:06 +0800 Subject: fix: lexical root directory config (#3055) --- lua/lspconfig/server_configurations/lexical.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lua') diff --git a/lua/lspconfig/server_configurations/lexical.lua b/lua/lspconfig/server_configurations/lexical.lua index f8e5f967..d8235d5e 100644 --- a/lua/lspconfig/server_configurations/lexical.lua +++ b/lua/lspconfig/server_configurations/lexical.lua @@ -4,7 +4,7 @@ return { default_config = { filetypes = { 'elixir', 'eelixir', 'heex', 'surface' }, root_dir = function(fname) - return util.find_git_ancestor(fname) or util.root_pattern 'mix.exs'(fname) + return util.root_pattern 'mix.exs'(fname) or util.find_git_ancestor(fname) end, single_file_support = true, }, -- cgit v1.2.3-70-g09d2