summaryrefslogtreecommitdiff
path: root/ale_linters/elixir/elixir_ls.vim
diff options
context:
space:
mode:
authorJon Parise <jon@indelible.org>2018-11-01 13:35:18 -0700
committerJon Parise <jon@indelible.org>2018-11-04 06:40:25 -0800
commitb25794e81b79d4ce1a6f2d9d0fbcc6876ecaa124 (patch)
treec181230a071ac6d52e1161090eb223e47255c31e /ale_linters/elixir/elixir_ls.vim
parentacdc99b94daf0f14a8a71d1de5656e9f612a0139 (diff)
downloadale-b25794e81b79d4ce1a6f2d9d0fbcc6876ecaa124.zip
elixir-ls now recognizes umbrella projects
Previously, elixir-ls would treat each sub-project within an umbrella as standalone, which isn't desirable from a language server perspective. Added ale#handlers#elixir#FindMixUmbrellaRoot, which locates the current project's root and then continues searching upwards for a potential umbrella project root. This literally looks just two levels up to keep things simple while keeping in line with Elixir project conventions. Use this new function to determine elixir-ls's LSP project root.
Diffstat (limited to 'ale_linters/elixir/elixir_ls.vim')
-rw-r--r--ale_linters/elixir/elixir_ls.vim2
1 files changed, 1 insertions, 1 deletions
diff --git a/ale_linters/elixir/elixir_ls.vim b/ale_linters/elixir/elixir_ls.vim
index c1e8fdd6..3b299ec6 100644
--- a/ale_linters/elixir/elixir_ls.vim
+++ b/ale_linters/elixir/elixir_ls.vim
@@ -16,6 +16,6 @@ call ale#linter#Define('elixir', {
\ 'lsp': 'stdio',
\ 'executable_callback': 'ale_linters#elixir#elixir_ls#GetExecutable',
\ 'command_callback': 'ale_linters#elixir#elixir_ls#GetExecutable',
-\ 'project_root_callback': 'ale#handlers#elixir#FindMixProjectRoot',
+\ 'project_root_callback': 'ale#handlers#elixir#FindMixUmbrellaRoot',
\ 'lsp_config_callback': ale#VarFunc('elixir_elixir_ls_config'),
\})