summaryrefslogtreecommitdiff
path: root/ale_linters/hack
diff options
context:
space:
mode:
Diffstat (limited to 'ale_linters/hack')
-rw-r--r--ale_linters/hack/hack.vim4
-rw-r--r--ale_linters/hack/hhast.vim6
2 files changed, 5 insertions, 5 deletions
diff --git a/ale_linters/hack/hack.vim b/ale_linters/hack/hack.vim
index aea428cc..822b5c87 100644
--- a/ale_linters/hack/hack.vim
+++ b/ale_linters/hack/hack.vim
@@ -16,7 +16,7 @@ endfunction
call ale#linter#Define('hack', {
\ 'name': 'hack',
\ 'lsp': 'stdio',
-\ 'executable_callback': 'ale_linters#hack#hack#GetExecutable',
+\ 'executable': function('ale_linters#hack#hack#GetExecutable'),
\ 'command': '%e lsp --from vim-ale',
-\ 'project_root_callback': 'ale_linters#hack#hack#GetProjectRoot',
+\ 'project_root': function('ale_linters#hack#hack#GetProjectRoot'),
\})
diff --git a/ale_linters/hack/hhast.vim b/ale_linters/hack/hhast.vim
index f6870b59..5e6d4dec 100644
--- a/ale_linters/hack/hhast.vim
+++ b/ale_linters/hack/hhast.vim
@@ -33,8 +33,8 @@ endfunction
call ale#linter#Define('hack', {
\ 'name': 'hhast',
\ 'lsp': 'stdio',
-\ 'executable_callback': 'ale_linters#hack#hhast#GetExecutable',
+\ 'executable': function('ale_linters#hack#hhast#GetExecutable'),
\ 'command': '%e --mode lsp --from vim-ale',
-\ 'project_root_callback': 'ale_linters#hack#hhast#GetProjectRoot',
-\ 'initialization_options_callback': 'ale_linters#hack#hhast#GetInitializationOptions',
+\ 'project_root': function('ale_linters#hack#hhast#GetProjectRoot'),
+\ 'initialization_options': function('ale_linters#hack#hhast#GetInitializationOptions'),
\})