mirror of
https://github.com/dense-analysis/ale
synced 2024-12-25 15:42:26 +00:00
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') : ''
|
||||
endfunction
|
||||
|
||||
function! ale_linters#elm#ls#GetOptions(buffer) abort
|
||||
function! ale_linters#elm#ls#GetInitializationOptions(buffer) abort
|
||||
return {
|
||||
\ 'elmPath': ale#Var(a:buffer, 'elm_ls_elm_path'),
|
||||
\ 'elmFormatPath': ale#Var(a:buffer, 'elm_ls_elm_format_path'),
|
||||
@ -37,5 +37,5 @@ call ale#linter#Define('elm', {
|
||||
\ 'command': '%e --stdio',
|
||||
\ 'project_root': function('ale_linters#elm#ls#GetProjectRoot'),
|
||||
\ 'language': 'elm',
|
||||
\ 'initialization_options': function('elm_ls#GetOptions')
|
||||
\ 'initialization_options': function('ale_linters#elm#ls#GetInitializationOptions')
|
||||
\})
|
||||
|
Loading…
Reference in New Issue
Block a user