mirror of
https://github.com/dense-analysis/ale.git
synced 2026-11-07 20:55:56 +08:00
CI / build_image (push) Has been cancelled
CI / test_ale (--linters-only) (push) Has been cancelled
CI / test_ale (--neovim-07-only) (push) Has been cancelled
CI / test_ale (--neovim-08-only) (push) Has been cancelled
CI / test_ale (--vim-80-only) (push) Has been cancelled
CI / test_ale (--vim-90-only) (push) Has been cancelled
* (feat) add support for kulala_fmt fixer Co-authored-by: w0rp <w0rp@users.noreply.github.com>
12 lines
373 B
VimL
12 lines
373 B
VimL
" Author: hsanson <hsanson@gmail.com>
|
|
" Description: kulala_fmt fixer for http and rest files.
|
|
|
|
call ale#Set('http_kulala_fmt_executable', 'kulala-fmt')
|
|
|
|
function! ale#fixers#kulala_fmt#Fix(buffer) abort
|
|
return {
|
|
\ 'command': ale#Escape(ale#Var(a:buffer, 'http_kulala_fmt_executable')) . ' format %t > /dev/null',
|
|
\ 'read_temporary_file': 1
|
|
\ }
|
|
endfunction
|