mirror of https://github.com/dense-analysis/ale
Fix E1085: Not a callable type: elm_ls#GetOptions (#4707)
Rename GetOptions to GetInitializationOptions for consistency.
This commit is contained in:
parent
9a23ec1f60
commit
143074a780
|
@ -16,7 +16,7 @@ function! ale_linters#elm#ls#GetProjectRoot(buffer) abort
|
||||||
return !empty(l:elm_json) ? fnamemodify(l:elm_json, ':p:h') : ''
|
return !empty(l:elm_json) ? fnamemodify(l:elm_json, ':p:h') : ''
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! ale_linters#elm#ls#GetOptions(buffer) abort
|
function! ale_linters#elm#ls#GetInitializationOptions(buffer) abort
|
||||||
return {
|
return {
|
||||||
\ 'elmPath': ale#Var(a:buffer, 'elm_ls_elm_path'),
|
\ 'elmPath': ale#Var(a:buffer, 'elm_ls_elm_path'),
|
||||||
\ 'elmFormatPath': ale#Var(a:buffer, 'elm_ls_elm_format_path'),
|
\ 'elmFormatPath': ale#Var(a:buffer, 'elm_ls_elm_format_path'),
|
||||||
|
@ -37,5 +37,5 @@ call ale#linter#Define('elm', {
|
||||||
\ 'command': '%e --stdio',
|
\ 'command': '%e --stdio',
|
||||||
\ 'project_root': function('ale_linters#elm#ls#GetProjectRoot'),
|
\ 'project_root': function('ale_linters#elm#ls#GetProjectRoot'),
|
||||||
\ 'language': 'elm',
|
\ 'language': 'elm',
|
||||||
\ 'initialization_options': function('elm_ls#GetOptions')
|
\ 'initialization_options': function('ale_linters#elm#ls#GetInitializationOptions')
|
||||||
\})
|
\})
|
||||||
|
|
Loading…
Reference in New Issue