From 93aa4c7617136ece8000f47c6babacc67c991be2 Mon Sep 17 00:00:00 2001 From: Alex Karle Date: Sun, 23 May 2021 00:15:13 -0400 Subject: [PATCH] vim: Add ALE configuration for python/javascript I didn't think I'd ever want format-on-save.. but it's kinda useful once you get used to it! (Especially with prettier, which is super hard to guess what it will do...) --- .vim/improved.vim | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.vim/improved.vim b/.vim/improved.vim index 79b8584..169c779 100644 --- a/.vim/improved.vim +++ b/.vim/improved.vim @@ -56,6 +56,9 @@ let g:git_messenger_always_into_popup = v:true let g:ale_set_loclist = 1 let g:ale_python_flake8_options = '--ignore "E501,E302"' +let g:ale_linters = { 'javascript': ['eslint'], 'python': ['flake8'] } +let g:ale_fixers = {'javascript': ['prettier'], 'python': ['black'] } +let g:ale_fix_on_save = 1 " }}} " COLORSCHEME {{{ -- libgit2 0.28.4