mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-07 05:04:28 +08:00
Fix #1424 - Make the brittany fixer work
This commit is contained in:
@@ -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(''))
|
||||||
|
|||||||
Reference in New Issue
Block a user