summaryrefslogtreecommitdiff
path: root/ale_linters/erlang
diff options
context:
space:
mode:
authorDmitri Vereshchagin <dmitri.vereshchagin@gmail.com>2024-02-22 05:14:56 +0300
committerGitHub <noreply@github.com>2024-02-22 11:14:56 +0900
commit1c5b84f375a5d0ea4eb11d64b333119245ec5605 (patch)
tree54c1f191b1dc7a2efd90bb3f947a7d8d0b1b6a38 /ale_linters/erlang
parent8b8ddea6e59eabba86f21f1eff09336d98cf928d (diff)
downloadale-1c5b84f375a5d0ea4eb11d64b333119245ec5605.zip
Update project root detection for erlang_ls linter (#4619)
* Refactor erlang_ls linter tests * Add Rebar3 _checkouts support for erlang_ls linter * Add Erlang.mk support for erlang_ls linter
Diffstat (limited to 'ale_linters/erlang')
-rw-r--r--ale_linters/erlang/erlang_ls.vim9
1 files changed, 8 insertions, 1 deletions
diff --git a/ale_linters/erlang/erlang_ls.vim b/ale_linters/erlang/erlang_ls.vim
index b747e454..0f070459 100644
--- a/ale_linters/erlang/erlang_ls.vim
+++ b/ale_linters/erlang/erlang_ls.vim
@@ -21,7 +21,14 @@ function! s:GetCommand(buffer) abort
endfunction
function! s:FindProjectRoot(buffer) abort
- let l:markers = ['_build/', 'erlang_ls.config', 'rebar.lock']
+ let l:markers = [
+ \ '_checkouts/',
+ \ '_build/',
+ \ 'deps/',
+ \ 'erlang_ls.config',
+ \ 'rebar.lock',
+ \ 'erlang.mk',
+ \]
" This is a way to find Erlang/OTP root (the one that is managed
" by kerl or asdf). Useful if :ALEGoToDefinition takes us there.