darkcloud-nvimconfig/vim/config/plugins/ale.vim

33 lines
800 B
VimL
Raw Normal View History

2018-03-13 11:32:04 -04:00
"autostart syntax checking when vim opens to a compatible filetype (default: 0)
if !exists("g:autostartchecker") || &diff
let g:autostartchecker = 0
endif
let g:ale_enabled = g:autostartchecker
" open list of warnings and errors when they exist
let g:ale_open_list = 1
2018-03-13 11:35:21 -04:00
" size of the list
let g:ale_list_window_size = 5
2018-03-13 11:32:04 -04:00
" don't fix on save
let g:ale_fix_on_save = 0
" configure when to lint
let g:ale_lint_on_text_changed = 'normal'
let g:ale_lint_on_enter = 1
let g:ale_lint_on_filetype_changed = 1
let g:ale_lint_on_save = 1
let g:ale_lint_on_insert_leave = 1
2018-03-13 11:32:04 -04:00
" list of ale fixers
let g:ale_fixers = {
\ 'javascript': [ 'eslint' ]
\ }
" don't run ale on minified files
let g:ale_pattern_options = {
\ '\.min\.[^\.]*$': { 'ale_linters': [], 'ale_fixers': [] },
\ }