mirror of
https://github.com/amix/vimrc
synced 2025-07-31 17:55:00 +08:00
Updated plugins
This commit is contained in:
@ -25,7 +25,7 @@ endfunction
|
||||
function! ale_linters#vim#ale_custom_linting_rules#GetCommand(buffer) abort
|
||||
let l:dir = s:GetALEProjectDir(a:buffer)
|
||||
|
||||
let l:temp_dir = ale#engine#CreateDirectory(a:buffer)
|
||||
let l:temp_dir = ale#command#CreateDirectory(a:buffer)
|
||||
let l:temp_file = l:temp_dir . '/example.vim'
|
||||
|
||||
let l:lines = getbufline(a:buffer, 1, '$')
|
||||
@ -58,8 +58,8 @@ endfunction
|
||||
|
||||
call ale#linter#Define('vim', {
|
||||
\ 'name': 'ale_custom_linting_rules',
|
||||
\ 'executable_callback': 'ale_linters#vim#ale_custom_linting_rules#GetExecutable',
|
||||
\ 'command_callback': 'ale_linters#vim#ale_custom_linting_rules#GetCommand',
|
||||
\ 'executable': function('ale_linters#vim#ale_custom_linting_rules#GetExecutable'),
|
||||
\ 'command': function('ale_linters#vim#ale_custom_linting_rules#GetCommand'),
|
||||
\ 'callback': 'ale_linters#vim#ale_custom_linting_rules#Handle',
|
||||
\ 'read_buffer': 0,
|
||||
\})
|
||||
|
@ -65,7 +65,7 @@ endfunction
|
||||
|
||||
call ale#linter#Define('vim', {
|
||||
\ 'name': 'vint',
|
||||
\ 'executable_callback': 'ale_linters#vim#vint#GetExecutable',
|
||||
\ 'executable': function('ale_linters#vim#vint#GetExecutable'),
|
||||
\ 'command_chain': [
|
||||
\ {'callback': 'ale_linters#vim#vint#VersionCommand', 'output_stream': 'stderr'},
|
||||
\ {'callback': 'ale_linters#vim#vint#GetCommand', 'output_stream': 'stdout'},
|
||||
|
Reference in New Issue
Block a user