summaryrefslogtreecommitdiff
path: root/ale_linters
diff options
context:
space:
mode:
authorHoracio Sanson <hsanson@gmail.com>2020-12-16 09:48:35 +0900
committerGitHub <noreply@github.com>2020-12-16 09:48:35 +0900
commitf996ede5999c99b1b3e3cecc02dbd06cb286d3ff (patch)
tree3c55bcdb2395e362c06e95300354d5305a9e0074 /ale_linters
parent03b6978a270107b670b0363d50f3eed4b365ba26 (diff)
parentcafe8621e2e94c8eff37a430fdccb0b87788620a (diff)
downloadale-f996ede5999c99b1b3e3cecc02dbd06cb286d3ff.zip
Merge pull request #3403 from will/sorbetwatchman
Add Ruby sorbet option to enable watchman
Diffstat (limited to 'ale_linters')
-rw-r--r--ale_linters/ruby/sorbet.vim5
1 files changed, 4 insertions, 1 deletions
diff --git a/ale_linters/ruby/sorbet.vim b/ale_linters/ruby/sorbet.vim
index cae0683c..c67e20cc 100644
--- a/ale_linters/ruby/sorbet.vim
+++ b/ale_linters/ruby/sorbet.vim
@@ -1,14 +1,17 @@
call ale#Set('ruby_sorbet_executable', 'srb')
call ale#Set('ruby_sorbet_options', '')
+call ale#Set('ruby_sorbet_enable_watchman', 0)
function! ale_linters#ruby#sorbet#GetCommand(buffer) abort
let l:executable = ale#Var(a:buffer, 'ruby_sorbet_executable')
let l:options = ale#Var(a:buffer, 'ruby_sorbet_options')
+ let l:enable_watchman = ale#Var(a:buffer, 'ruby_sorbet_enable_watchman')
return ale#ruby#EscapeExecutable(l:executable, 'srb')
\ . ' tc'
\ . (!empty(l:options) ? ' ' . l:options : '')
- \ . ' --lsp --disable-watchman'
+ \ . ' --lsp'
+ \ . (l:enable_watchman ? '' : ' --disable-watchman')
endfunction
call ale#linter#Define('ruby', {