mirror of
https://git.decapod.one/brethil/dotfiles
synced 2024-12-22 23:31:32 +01:00
vim: improve ale linter/fixers configuration
This commit is contained in:
parent
511e46d4d8
commit
62a60503ad
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user