mirror of
https://github.com/dense-analysis/ale.git
synced 2026-02-19 08:14:21 +08:00
Some checks failed
CI / build_image (push) Has been cancelled
CI / test_ale (--linters-only) (push) Has been cancelled
CI / test_ale (--lua-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
16 lines
417 B
VimL
16 lines
417 B
VimL
:scriptencoding utf-8
|
|
|
|
call ale#Set('markdownlint_executable', 'markdownlint')
|
|
call ale#Set('markdownlint_options', '--fix')
|
|
|
|
function! ale#fixers#markdownlint#Fix(buffer) abort
|
|
let l:executable = ale#Var(a:buffer, 'markdownlint_executable')
|
|
let l:options = ale#Var(a:buffer, 'markdownlint_options')
|
|
|
|
return {
|
|
\ 'command': ale#Escape(l:executable)
|
|
\ . ' ' . l:options,
|
|
\}
|
|
endfunction
|
|
|