diff options
author | w0rp <devw0rp@gmail.com> | 2019-06-09 00:12:11 +0100 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2019-06-09 00:12:11 +0100 |
commit | 507f164a09d2cb3c99983424f9d186d6f4081820 (patch) | |
tree | f30d93c8448c2c6dce5bea17027764212274cf2e /ale_linters/reason | |
parent | 92d515c211716b5d046518547dba85f352e944b1 (diff) | |
download | ale-507f164a09d2cb3c99983424f9d186d6f4081820.zip |
Document and test reason-language-server
Diffstat (limited to 'ale_linters/reason')
-rw-r--r-- | ale_linters/reason/ls.vim (renamed from ale_linters/reason/reason_ls.vim) | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/ale_linters/reason/reason_ls.vim b/ale_linters/reason/ls.vim index 9bf25d3a..fb1114ae 100644 --- a/ale_linters/reason/reason_ls.vim +++ b/ale_linters/reason/ls.vim @@ -1,7 +1,9 @@ " Author: David Buchan-Swanson <github@deecewan.com> " Description: Integrate ALE with reason-language-server. -function! ale_linters#reason#reason_ls#FindProjectRoot(buffer) abort +call ale#Set('reason_ls_executable', '') + +function! ale_linters#reason#ls#FindProjectRoot(buffer) abort let l:reason_config = ale#path#FindNearestFile(a:buffer, 'bsconfig.json') if !empty(l:reason_config) @@ -14,8 +16,8 @@ endfunction call ale#linter#Define('reason', { \ 'name': 'reason-language-server', \ 'lsp': 'stdio', -\ 'executable':{buffer -> ale#Var(buffer, 'reason_ls_executable')}, +\ 'executable': {buffer -> ale#Var(buffer, 'reason_ls_executable')}, \ 'command': '%e', -\ 'project_root': function('ale_linters#reason#reason_ls#FindProjectRoot'), +\ 'project_root': function('ale_linters#reason#ls#FindProjectRoot'), \ 'language': 'reason', \}) |