From f54ea40d9540cacb7f38a05e2268ab3d56900e63 Mon Sep 17 00:00:00 2001 From: vincent Date: Wed, 21 Apr 2021 09:39:48 +0200 Subject: [PATCH] add prettier as ALE --- nvim/.config/nvim/init.vim | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/nvim/.config/nvim/init.vim b/nvim/.config/nvim/init.vim index ba0b88f..92c62dc 100644 --- a/nvim/.config/nvim/init.vim +++ b/nvim/.config/nvim/init.vim @@ -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 inoremap kj set ignorecase