mirror of
https://github.com/dense-analysis/ale.git
synced 2026-01-09 21:12:31 +08:00
Use stdin flag instead of temporary files. This allows ktlint to work with .editorconfig files.
9 lines
257 B
VimL
9 lines
257 B
VimL
" Author: Michael Phillips <michaeljoelphillips@gmail.com>
|
|
" Description: Fix Kotlin files with ktlint.
|
|
|
|
function! ale#fixers#ktlint#Fix(buffer) abort
|
|
return {
|
|
\ 'command': ale#handlers#ktlint#GetCommand(a:buffer) . ' --format'
|
|
\}
|
|
endfunction
|