diff options
author | Horacio Sanson <hsanson@gmail.com> | 2020-08-24 09:16:35 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-24 09:16:35 +0900 |
commit | 1a7366067af97cda00268d52de5a873827c52962 (patch) | |
tree | fe9f53ed0ea34cb5b734be755d50a116a6e28d05 | |
parent | 33eb03ea7102aaea5b8791cfa070961b40fc40fd (diff) | |
parent | 76801743cf18e69a6dec86947243b6ec55530c7b (diff) | |
download | ale-1a7366067af97cda00268d52de5a873827c52962.zip |
Merge pull request #3302 from khaveesh/master
latexindent: Run fixer from stdin instead of a temporary file
-rw-r--r-- | autoload/ale/fixers/latexindent.vim | 4 | ||||
-rw-r--r-- | test/fixers/test_latexindent_fixer_callback.vader | 8 |
2 files changed, 3 insertions, 9 deletions
diff --git a/autoload/ale/fixers/latexindent.vim b/autoload/ale/fixers/latexindent.vim index b0a0884a..54f1231e 100644 --- a/autoload/ale/fixers/latexindent.vim +++ b/autoload/ale/fixers/latexindent.vim @@ -10,9 +10,7 @@ function! ale#fixers#latexindent#Fix(buffer) abort return { \ 'command': ale#Escape(l:executable) - \ . ' -l -w' + \ . ' -l' \ . (empty(l:options) ? '' : ' ' . l:options) - \ . ' %t', - \ 'read_temporary_file': 1, \} endfunction diff --git a/test/fixers/test_latexindent_fixer_callback.vader b/test/fixers/test_latexindent_fixer_callback.vader index d0da94a1..a440ed65 100644 --- a/test/fixers/test_latexindent_fixer_callback.vader +++ b/test/fixers/test_latexindent_fixer_callback.vader @@ -18,10 +18,8 @@ Execute(The latexindent callback should return the correct default values): AssertEqual \ { - \ 'read_temporary_file': 1, \ 'command': ale#Escape('xxxinvalid') - \ . ' -l -w' - \ . ' %t', + \ . ' -l' \ }, \ ale#fixers#latexindent#Fix(bufnr('')) @@ -31,10 +29,8 @@ Execute(The latexindent callback should include custom gofmt options): AssertEqual \ { - \ 'read_temporary_file': 1, \ 'command': ale#Escape('xxxinvalid') - \ . ' -l -w' + \ . ' -l' \ . ' ' . g:ale_tex_latexindent_options - \ . ' %t', \ }, \ ale#fixers#latexindent#Fix(bufnr('')) |