Fix #1424 - Make the brittany fixer work
This commit is contained in:
parent
91d7e81ebc
commit
f9ae58849a
@ -1,4 +1,4 @@
|
|||||||
" Author: eborden <evan@evan-borden.com>
|
" Author: eborden <evan@evan-borden.com>, ifyouseewendy <ifyouseewendy@gmail.com>, aspidiets <emarshall85@gmail.com>
|
||||||
" Description: Integration of brittany with ALE.
|
" Description: Integration of brittany with ALE.
|
||||||
|
|
||||||
call ale#Set('haskell_brittany_executable', 'brittany')
|
call ale#Set('haskell_brittany_executable', 'brittany')
|
||||||
@ -8,6 +8,7 @@ function! ale#fixers#brittany#Fix(buffer) abort
|
|||||||
|
|
||||||
return {
|
return {
|
||||||
\ 'command': ale#Escape(l:executable)
|
\ 'command': ale#Escape(l:executable)
|
||||||
|
\ . ' --write-mode inplace'
|
||||||
\ . ' %t',
|
\ . ' %t',
|
||||||
\ 'read_temporary_file': 1,
|
\ 'read_temporary_file': 1,
|
||||||
\}
|
\}
|
||||||
|
@ -18,6 +18,7 @@ Execute(The brittany callback should return the correct default values):
|
|||||||
\ {
|
\ {
|
||||||
\ 'read_temporary_file': 1,
|
\ 'read_temporary_file': 1,
|
||||||
\ 'command': ale#Escape('xxxinvalid')
|
\ 'command': ale#Escape('xxxinvalid')
|
||||||
|
\ . ' --write-mode inplace'
|
||||||
\ . ' %t',
|
\ . ' %t',
|
||||||
\ },
|
\ },
|
||||||
\ ale#fixers#brittany#Fix(bufnr(''))
|
\ ale#fixers#brittany#Fix(bufnr(''))
|
||||||
|
Loading…
Reference in New Issue
Block a user