From 143074a7807bf11ce754ed3696e7831f1f16f8c3 Mon Sep 17 00:00:00 2001 From: samuelhelen <78298409+samuelhelen@users.noreply.github.com> Date: Sun, 14 Jan 2024 13:28:29 +0200 Subject: [PATCH] Fix E1085: Not a callable type: elm_ls#GetOptions (#4707) Rename GetOptions to GetInitializationOptions for consistency. --- ale_linters/elm/ls.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ale_linters/elm/ls.vim b/ale_linters/elm/ls.vim index 38a5b234..111f3ac2 100644 --- a/ale_linters/elm/ls.vim +++ b/ale_linters/elm/ls.vim @@ -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') \})