Skip to content

Commit

Permalink
Fix E1085: Not a callable type: elm_ls#GetOptions (#4707)
Browse files Browse the repository at this point in the history
Rename GetOptions to GetInitializationOptions for consistency.
  • Loading branch information
samuelhelen authored Jan 14, 2024
1 parent 9a23ec1 commit 143074a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ale_linters/elm/ls.vim
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
Expand All @@ -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')
\})

0 comments on commit 143074a

Please sign in to comment.