Skip to content

Commit

Permalink
Update elixirls.lua to work better with umbrella apps
Browse files Browse the repository at this point in the history
  • Loading branch information
georgeguimaraes authored Oct 15, 2023
1 parent 2a101fb commit ea0d182
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lua/lspconfig/server_configurations/elixirls.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ return {
default_config = {
filetypes = { 'elixir', 'eelixir', 'heex', 'surface' },
root_dir = function(fname)
return util.root_pattern('mix.exs', '.git')(fname) or vim.loop.os_homedir()
return util.find_git_ancestor(fname) or util.root_pattern("mix.exs")(fname) or vim.loop.os_homedir()
end,
},
docs = {
Expand Down Expand Up @@ -33,7 +33,7 @@ require'lspconfig'.elixirls.setup{
```
]],
default_config = {
root_dir = [[root_pattern("mix.exs", ".git") or vim.loop.os_homedir()]],
root_dir = [[util.find_git_ancestor(fname) or util.root_pattern("mix.exs")(fname) or vim.loop.os_homedir()]],
},
},
}

0 comments on commit ea0d182

Please sign in to comment.