From 5035281cb978d8fe6de7d91c1973a19f1a96bb3c Mon Sep 17 00:00:00 2001 From: Horacio Sanson Date: Sat, 18 Apr 2020 15:27:11 +0900 Subject: Fix 2269 - use ktlint stdin. Use stdin flag instead of temporary files. This allows ktlint to work with .editorconfig files. --- autoload/ale/fixers/ktlint.vim | 3 +-- autoload/ale/handlers/ktlint.vim | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) (limited to 'autoload') diff --git a/autoload/ale/fixers/ktlint.vim b/autoload/ale/fixers/ktlint.vim index cb975d6c..64d1340d 100644 --- a/autoload/ale/fixers/ktlint.vim +++ b/autoload/ale/fixers/ktlint.vim @@ -3,7 +3,6 @@ function! ale#fixers#ktlint#Fix(buffer) abort return { - \ 'command': ale#handlers#ktlint#GetCommand(a:buffer) . ' --format', - \ 'read_temporary_file': 1, + \ 'command': ale#handlers#ktlint#GetCommand(a:buffer) . ' --format' \} endfunction diff --git a/autoload/ale/handlers/ktlint.vim b/autoload/ale/handlers/ktlint.vim index ad999485..77e7ab66 100644 --- a/autoload/ale/handlers/ktlint.vim +++ b/autoload/ale/handlers/ktlint.vim @@ -13,7 +13,7 @@ function! ale#handlers#ktlint#GetCommand(buffer) abort return ale#Escape(l:executable) \ . (empty(l:options) ? '' : ' ' . l:options) \ . (empty(l:rulesets) ? '' : ' ' . l:rulesets) - \ . ' %t' + \ . ' --stdin' endfunction function! ale#handlers#ktlint#GetRulesets(buffer) abort -- cgit v1.2.3