aboutsummaryrefslogtreecommitdiffstats
path: root/lua
diff options
context:
space:
mode:
authorTristan Yang <tunkshif@foxmail.com>2024-03-06 13:35:06 +0800
committerGitHub <noreply@github.com>2024-03-06 13:35:06 +0800
commitd006e0c5aebfd9f820eb91eb74e2fc80fcff7436 (patch)
tree8e51636cdbe67b820d8a0ace2b4ecb070abfefd0 /lua
parentdocs: update server_configurations.md (diff)
downloadnvim-lspconfig-d006e0c5aebfd9f820eb91eb74e2fc80fcff7436.tar
nvim-lspconfig-d006e0c5aebfd9f820eb91eb74e2fc80fcff7436.tar.gz
nvim-lspconfig-d006e0c5aebfd9f820eb91eb74e2fc80fcff7436.tar.bz2
nvim-lspconfig-d006e0c5aebfd9f820eb91eb74e2fc80fcff7436.tar.lz
nvim-lspconfig-d006e0c5aebfd9f820eb91eb74e2fc80fcff7436.tar.xz
nvim-lspconfig-d006e0c5aebfd9f820eb91eb74e2fc80fcff7436.tar.zst
nvim-lspconfig-d006e0c5aebfd9f820eb91eb74e2fc80fcff7436.zip
fix: lexical root directory config (#3055)
Diffstat (limited to 'lua')
-rw-r--r--lua/lspconfig/server_configurations/lexical.lua2
1 files changed, 1 insertions, 1 deletions
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,
},