Merge pull request #2228 from Nomad145/ktlint

Add ktlint Fixer Support
This commit is contained in:
w0rp authored and GitHub committed 2019-01-27 15:55:13 +00:00
commit 08d3523962
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