Skip to content

Commit 110b627

Browse files
committed
Add ALE plugin
1 parent b3029fa commit 110b627

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

plugins.vim

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ call plug#begin('~/.vim/plugged')
1414
Plug 'ervandew/supertab' " Complete most used words with tab
1515
Plug 'editorconfig/editorconfig-vim' " Loads configurations from .editorconfig file
1616
Plug 'janko-m/vim-test' " Wrapper for running tests
17+
Plug 'dense-analysis/ale' " Asynchronous Lint Engine
1718

1819
" Javascript
1920
Plug 'pangloss/vim-javascript'
@@ -112,3 +113,12 @@ nnoremap <leader>mfd :MixFormatDiff<cr>
112113
113114
" Vim alchemist
114115
let g:alchemist_tag_disable = 1
116+
117+
" Vim ALE
118+
nnoremap <leader>jf :ALEFix<cr>
119+
nnoremap <leader>jfp :ALEFix pretter<cr>
120+
nnoremap <leader>jfl :ALEFix eslint<cr>
121+
let g:ale_sign_error = ''
122+
let g:ale_sign_warning = '⚠️'
123+
let g:ale_fixers = ['prettier', 'eslint']
124+
let g:ale_fix_on_save = 1

0 commit comments

Comments
 (0)