mirror of
https://github.com/dense-analysis/ale.git
synced 2026-05-19 23:09:58 +08:00
Merge pull request #3302 from khaveesh/master
latexindent: Run fixer from stdin instead of a temporary file
This commit is contained in:
@@ -10,9 +10,7 @@ function! ale#fixers#latexindent#Fix(buffer) abort
|
|||||||
|
|
||||||
return {
|
return {
|
||||||
\ 'command': ale#Escape(l:executable)
|
\ 'command': ale#Escape(l:executable)
|
||||||
\ . ' -l -w'
|
\ . ' -l'
|
||||||
\ . (empty(l:options) ? '' : ' ' . l:options)
|
\ . (empty(l:options) ? '' : ' ' . l:options)
|
||||||
\ . ' %t',
|
|
||||||
\ 'read_temporary_file': 1,
|
|
||||||
\}
|
\}
|
||||||
endfunction
|
endfunction
|
||||||
|
|||||||
@@ -18,10 +18,8 @@ Execute(The latexindent callback should return the correct default values):
|
|||||||
|
|
||||||
AssertEqual
|
AssertEqual
|
||||||
\ {
|
\ {
|
||||||
\ 'read_temporary_file': 1,
|
|
||||||
\ 'command': ale#Escape('xxxinvalid')
|
\ 'command': ale#Escape('xxxinvalid')
|
||||||
\ . ' -l -w'
|
\ . ' -l'
|
||||||
\ . ' %t',
|
|
||||||
\ },
|
\ },
|
||||||
\ ale#fixers#latexindent#Fix(bufnr(''))
|
\ ale#fixers#latexindent#Fix(bufnr(''))
|
||||||
|
|
||||||
@@ -31,10 +29,8 @@ Execute(The latexindent callback should include custom gofmt options):
|
|||||||
|
|
||||||
AssertEqual
|
AssertEqual
|
||||||
\ {
|
\ {
|
||||||
\ 'read_temporary_file': 1,
|
|
||||||
\ 'command': ale#Escape('xxxinvalid')
|
\ 'command': ale#Escape('xxxinvalid')
|
||||||
\ . ' -l -w'
|
\ . ' -l'
|
||||||
\ . ' ' . g:ale_tex_latexindent_options
|
\ . ' ' . g:ale_tex_latexindent_options
|
||||||
\ . ' %t',
|
|
||||||
\ },
|
\ },
|
||||||
\ ale#fixers#latexindent#Fix(bufnr(''))
|
\ ale#fixers#latexindent#Fix(bufnr(''))
|
||||||
|
|||||||
Reference in New Issue
Block a user