summaryrefslogtreecommitdiff
path: root/ale_linters/ruby/solargraph.vim
diff options
context:
space:
mode:
authorKim Joseph S. Sadomia <kimsadomia@protonmail.com>2018-10-12 13:03:06 +0800
committerKim Joseph S. Sadomia <kimsadomia@protonmail.com>2018-10-12 13:03:06 +0800
commit12409fa73d0d7c91f16ae4772a0b96476d6948b6 (patch)
tree91929f9acb4b09a57434a2d1d80c478754c3c9c0 /ale_linters/ruby/solargraph.vim
parente5b5ce9f512d4a36e944f728f4d1ff5d8238c64f (diff)
downloadale-12409fa73d0d7c91f16ae4772a0b96476d6948b6.zip
Expose ruby-solargraph initialization options
Diffstat (limited to 'ale_linters/ruby/solargraph.vim')
-rw-r--r--ale_linters/ruby/solargraph.vim2
1 files changed, 2 insertions, 0 deletions
diff --git a/ale_linters/ruby/solargraph.vim b/ale_linters/ruby/solargraph.vim
index 7ca0399f..3b3eb9de 100644
--- a/ale_linters/ruby/solargraph.vim
+++ b/ale_linters/ruby/solargraph.vim
@@ -5,6 +5,7 @@
" Description: updated to use stdio
call ale#Set('ruby_solargraph_executable', 'solargraph')
+call ale#Set('ruby_solargraph_init_options', {})
function! ale_linters#ruby#solargraph#GetCommand(buffer) abort
return '%e' . ale#Pad('stdio')
@@ -17,4 +18,5 @@ call ale#linter#Define('ruby', {
\ 'executable_callback': ale#VarFunc('ruby_solargraph_executable'),
\ 'command_callback': 'ale_linters#ruby#solargraph#GetCommand',
\ 'project_root_callback': 'ale#ruby#FindProjectRoot',
+\ 'initialization_options_callback': ale#VarFunc('ruby_solargraph_init_options'),
\})