#2132 - Replace all uses of foo_callback with foo

This commit is contained in:
w0rp
2019-02-22 18:05:04 +00:00
parent f53b25d256
commit 883978ece9
214 changed files with 452 additions and 524 deletions

View File

@@ -50,8 +50,8 @@ endfunction
call ale#linter#Define('crystal', {
\ 'name': 'ameba',
\ 'executable_callback': ale#VarFunc('crystal_ameba_executable'),
\ 'command_callback': 'ale_linters#crystal#ameba#GetCommand',
\ 'executable': {b -> ale#Var(b, 'crystal_ameba_executable')},
\ 'command': function('ale_linters#crystal#ameba#GetCommand'),
\ 'callback': 'ale_linters#crystal#ameba#HandleAmebaOutput',
\ 'lint_file': 1,
\})

View File

@@ -26,6 +26,6 @@ call ale#linter#Define('crystal', {
\ 'executable': 'crystal',
\ 'output_stream': 'both',
\ 'lint_file': 1,
\ 'command_callback': 'ale_linters#crystal#crystal#GetCommand',
\ 'command': function('ale_linters#crystal#crystal#GetCommand'),
\ 'callback': 'ale_linters#crystal#crystal#Handle',
\})