add prettier as ALE

This commit is contained in:
vincent 2021-04-21 09:39:48 +02:00
parent e90f8c9206
commit f54ea40d95

View File

@ -30,7 +30,12 @@ let g:ale_lint_on_save = 1
let g:ale_fix_on_save = 1
let g:ale_sign_column_always = 1
let g:airline#extensions#ale#enabled = 1
let g:ale_fixers = {
\ '*': ['remove_trailing_lines', 'trim_whitespace'],
\ 'javascript': ['prettier'],
\ 'markdown': ['prettier'],
\ 'yaml': ['prettier'],
\}
inoremap jk <esc>
inoremap kj <esc>
set ignorecase