Add 2 automatical fixers glocally.
This commit is contained in:
parent
a4c0ce99b5
commit
358f3cfde0
@ -4,5 +4,14 @@
|
|||||||
" You should not turn this setting on if you wish to use ALE as a completion
|
" You should not turn this setting on if you wish to use ALE as a completion
|
||||||
" source for other completion plugins, like Deoplete.
|
" source for other completion plugins, like Deoplete.
|
||||||
packadd! ale
|
packadd! ale
|
||||||
|
|
||||||
|
" Enable ale completion
|
||||||
let g:ale_completion_enabled = 1
|
let g:ale_completion_enabled = 1
|
||||||
set omnifunc=ale#completion#OmniFunc
|
set omnifunc=ale#completion#OmniFunc
|
||||||
|
|
||||||
|
" Enable some ale fixers globally
|
||||||
|
let g:ale_fixers = {
|
||||||
|
\ '*': ['remove_trailing_lines', 'trim_whitespace'],
|
||||||
|
\}
|
||||||
|
" fix when save
|
||||||
|
let g:ale_fix_on_save = 1
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user