Add ktlint fixer support.

This commit is contained in:
Michael Phillips committed 2019-01-20 19:39:47 -06:00
1 parent d1fc084b2d
commit bd1e639681
8 files changed
+135 -47

No files matched your search

+9
View File
@@ -0,0 +1,9 @@
" 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',
\ 'read_temporary_file': 1,
\}
endfunction