From 12409fa73d0d7c91f16ae4772a0b96476d6948b6 Mon Sep 17 00:00:00 2001 From: "Kim Joseph S. Sadomia" Date: Fri, 12 Oct 2018 13:03:06 +0800 Subject: Expose ruby-solargraph initialization options --- ale_linters/ruby/solargraph.vim | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ale_linters') 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'), \}) -- cgit v1.2.3 From cc1aece1e0f8ad162cc12947c8897cd93b33d299 Mon Sep 17 00:00:00 2001 From: "Kim Joseph S. Sadomia" Date: Fri, 12 Oct 2018 18:16:28 +0800 Subject: Rename solargraph initialization option variable --- ale_linters/ruby/solargraph.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ale_linters') diff --git a/ale_linters/ruby/solargraph.vim b/ale_linters/ruby/solargraph.vim index 3b3eb9de..5ff0a759 100644 --- a/ale_linters/ruby/solargraph.vim +++ b/ale_linters/ruby/solargraph.vim @@ -5,7 +5,7 @@ " Description: updated to use stdio call ale#Set('ruby_solargraph_executable', 'solargraph') -call ale#Set('ruby_solargraph_init_options', {}) +call ale#Set('ruby_solargraph_options', {}) function! ale_linters#ruby#solargraph#GetCommand(buffer) abort return '%e' . ale#Pad('stdio') @@ -18,5 +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'), +\ 'initialization_options_callback': ale#VarFunc('ruby_solargraph_options'), \}) -- cgit v1.2.3