mirror of
https://github.com/dense-analysis/ale.git
synced 2026-03-05 22:54:24 +08:00
#2132 - Replace all uses of foo_callback with foo
This commit is contained in:
@@ -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'),
|
||||
\})
|
||||
|
||||
@@ -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'),
|
||||
\})
|
||||
|
||||
Reference in New Issue
Block a user