summaryrefslogtreecommitdiff
path: root/ale_linters/thrift/thrift.vim
diff options
context:
space:
mode:
Diffstat (limited to 'ale_linters/thrift/thrift.vim')
-rw-r--r--ale_linters/thrift/thrift.vim5
1 files changed, 2 insertions, 3 deletions
diff --git a/ale_linters/thrift/thrift.vim b/ale_linters/thrift/thrift.vim
index 2f2086c9..345c7abe 100644
--- a/ale_linters/thrift/thrift.vim
+++ b/ale_linters/thrift/thrift.vim
@@ -80,9 +80,8 @@ endfunction
call ale#linter#Define('thrift', {
\ 'name': 'thrift',
-\ 'executable': 'thrift',
\ 'output_stream': 'both',
-\ 'executable_callback': ale#VarFunc('thrift_thrift_executable'),
-\ 'command_callback': 'ale_linters#thrift#thrift#GetCommand',
+\ 'executable': {b -> ale#Var(b, 'thrift_thrift_executable')},
+\ 'command': function('ale_linters#thrift#thrift#GetCommand'),
\ 'callback': 'ale_linters#thrift#thrift#Handle',
\})