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

vim: update ALE config (fixers/linters)

This commit is contained in:
bretello 2020-04-06 19:49:24 +02:00
parent 878741ef29
commit aa44a46e12

View File

@ -19,18 +19,22 @@ set showtabline=2 laststatus=2 " fix statusline
let g:ale_fixers_aliases = {'vue': ['vue', 'javascript']}
let g:ale_fixers = {
\ '*': ['remove_trailing_lines', 'trim_whitespace'],
\ 'python': ['black'],
\ 'bash': ['shfmt'],
\ 'json': ['prettier'],
\ 'css': ['prettier'],
\ 'markdown': ['prettier'],
\ 'python': ['black', 'reorder-python-imports'],
\ 'rust': ['rustfmt'],
\ "javascript": ["prettier", "eslint"],
\ "vue": ["prettier", "eslint"]
\}
let g:ale_linter_aliases = {'vue': ['vue', 'javascript']}
let g:ale_linters = {
\ 'python': ['pylint'],
\ 'python': ['pyls', 'pylint', 'mypy', 'bandit'],
\ 'bash': ['bashlint', "shellcheck"],
\ 'rust': ['rustc'],
\ 'yaml': ['yamllint'],
\ 'javascript': ["eslint", "vls"],
\ 'javascript': ["yarn lint", "eslint", "vls"],
\}
let g:ale_lint_on_insert_leave = 1
@ -43,7 +47,8 @@ let g:ale_set_loclist=0
" let g:ale_lint_on_save = 1
let g:ale_fix_on_save = 1
let g:ale_lint_on_insert_leave = 1
" let g:ale_lint_on_insert_leave = 1
let g:ale_lint_on_text_changed = 1
let g:ale_completion_enabled = 1