diff --git a/config/01-plugins.vim b/config/01-plugins.vim index b97a6ae..a0f2e0b 100644 --- a/config/01-plugins.vim +++ b/config/01-plugins.vim @@ -66,3 +66,9 @@ let g:airline#extensions#ale#enabled = 1 let g:ale_sign_column_always = 1 let g:ale_sign_error = '' let g:ale_sign_warning = '' + +let g:ale_fixers = { + \ 'javascript': [ 'eslint' ], + \ } + +let g:ale_fix_on_save = 1 diff --git a/config/03-mappings.vim b/config/03-mappings.vim index 4c338b6..918e0d1 100644 --- a/config/03-mappings.vim +++ b/config/03-mappings.vim @@ -5,6 +5,7 @@ inoremap w :updatea cmap w!! w !sudo tee % >/dev/null cmap eh e %:h/ +cmap wh w %:h/ "Remove search highlight when is pressed nnoremap :nohlsearch