Add 2 automatical fixers glocally.

This commit is contained in:
wunewww 2024-05-05 11:09:36 +08:00
parent a4c0ce99b5
commit 358f3cfde0

View File

@ -4,5 +4,14 @@
" You should not turn this setting on if you wish to use ALE as a completion
" source for other completion plugins, like Deoplete.
packadd! ale
" Enable ale completion
let g:ale_completion_enabled = 1
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