1
0
mirror of https://git.decapod.one/brethil/dotfiles synced 2024-11-22 11:31:30 +01:00

vim: improve ale linter/fixers configuration

This commit is contained in:
bretello 2020-03-09 17:54:52 +01:00
parent 511e46d4d8
commit 62a60503ad

View File

@ -14,8 +14,23 @@ set nowrap
set showtabline=2 laststatus=2 " fix statusline set showtabline=2 laststatus=2 " fix statusline
" ALE configuration " ALE configuration
let g:ale_fixers = { 'python': ['black'] , 'rust': ['rustfmt']} let g:ale_fixers_aliases = {'vue': ['vue', 'javascript']}
let g:ale_linters = { 'python': ['pylint'], 'bash': ['bashlint', 'shellcheck'], 'rust': ['rustc'] } 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_lint_on_insert_leave = 1
let g:ale_fix_on_insert_leave = 1 let g:ale_fix_on_insert_leave = 1
let g:ale_lint_on_text_changed = 1 let g:ale_lint_on_text_changed = 1