summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsamuelhelen <78298409+samuelhelen@users.noreply.github.com>2024-01-14 13:28:29 +0200
committerGitHub <noreply@github.com>2024-01-14 20:28:29 +0900
commit143074a7807bf11ce754ed3696e7831f1f16f8c3 (patch)
tree851c1b76a2355f85ced7edadae17989ac1b8b2ee
parent9a23ec1f60ec85f6afb70870a1978141b321fb3c (diff)
downloadale-143074a7807bf11ce754ed3696e7831f1f16f8c3.zip
Fix E1085: Not a callable type: elm_ls#GetOptions (#4707)
Rename GetOptions to GetInitializationOptions for consistency.
-rw-r--r--ale_linters/elm/ls.vim4
1 files 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')
\})