vim: improve ale linter/fixers configuration

feature/symbol-search
bretello 2020-03-09 17:54:52 +01:00
parent 511e46d4d8
commit 62a60503ad
1 changed files with 17 additions and 2 deletions

View File

@ -14,8 +14,23 @@ set nowrap
set showtabline=2 laststatus=2 " fix statusline
" ALE configuration
let g:ale_fixers = { 'python': ['black'] , 'rust': ['rustfmt']}
let g:ale_linters = { 'python': ['pylint'], 'bash': ['bashlint', 'shellcheck'], 'rust': ['rustc'] }
let g:ale_fixers_aliases = {'vue': ['vue', 'javascript']}
let g:ale_fixers = {
\ '*': ['remove_trailing_lines', 'trim_whitespace'],
\ 'python': ['black'],
\ 'rust': ['rustfmt'],
\ "javascript": ["prettier", "eslint"],
\ "vue": ["prettier", "eslint"]
\}
let g:ale_linter_aliases = {'vue': ['vue', 'javascript']}
let g:ale_linters = {
\ 'python': ['pylint'],
\ 'bash': ['bashlint', "shellcheck"],
\ 'rust': ['rustc'],
\ 'yaml': ['yamllint'],
\ 'javascript': ["eslint", "vls"],
\}
let g:ale_lint_on_insert_leave = 1
let g:ale_fix_on_insert_leave = 1
let g:ale_lint_on_text_changed = 1