mirror of
https://git.decapod.one/brethil/dotfiles
synced 2024-11-22 11:31:30 +01:00
vim: update ALE config (fixers/linters)
This commit is contained in:
parent
878741ef29
commit
aa44a46e12
|
@ -19,18 +19,22 @@ set showtabline=2 laststatus=2 " fix statusline
|
||||||
let g:ale_fixers_aliases = {'vue': ['vue', 'javascript']}
|
let g:ale_fixers_aliases = {'vue': ['vue', 'javascript']}
|
||||||
let g:ale_fixers = {
|
let g:ale_fixers = {
|
||||||
\ '*': ['remove_trailing_lines', 'trim_whitespace'],
|
\ '*': ['remove_trailing_lines', 'trim_whitespace'],
|
||||||
\ 'python': ['black'],
|
\ 'bash': ['shfmt'],
|
||||||
|
\ 'json': ['prettier'],
|
||||||
|
\ 'css': ['prettier'],
|
||||||
|
\ 'markdown': ['prettier'],
|
||||||
|
\ 'python': ['black', 'reorder-python-imports'],
|
||||||
\ 'rust': ['rustfmt'],
|
\ 'rust': ['rustfmt'],
|
||||||
\ "javascript": ["prettier", "eslint"],
|
\ "javascript": ["prettier", "eslint"],
|
||||||
\ "vue": ["prettier", "eslint"]
|
\ "vue": ["prettier", "eslint"]
|
||||||
\}
|
\}
|
||||||
let g:ale_linter_aliases = {'vue': ['vue', 'javascript']}
|
let g:ale_linter_aliases = {'vue': ['vue', 'javascript']}
|
||||||
let g:ale_linters = {
|
let g:ale_linters = {
|
||||||
\ 'python': ['pylint'],
|
\ 'python': ['pyls', 'pylint', 'mypy', 'bandit'],
|
||||||
\ 'bash': ['bashlint', "shellcheck"],
|
\ 'bash': ['bashlint', "shellcheck"],
|
||||||
\ 'rust': ['rustc'],
|
\ 'rust': ['rustc'],
|
||||||
\ 'yaml': ['yamllint'],
|
\ 'yaml': ['yamllint'],
|
||||||
\ 'javascript': ["eslint", "vls"],
|
\ 'javascript': ["yarn lint", "eslint", "vls"],
|
||||||
\}
|
\}
|
||||||
|
|
||||||
let g:ale_lint_on_insert_leave = 1
|
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_lint_on_save = 1
|
||||||
let g:ale_fix_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
|
let g:ale_completion_enabled = 1
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user