mirror of
https://git.decapod.one/brethil/dotfiles
synced 2024-12-22 15:21:30 +01:00
vim: improve linter/fixer config
This commit is contained in:
parent
d86640d248
commit
b4f6f4cd40
|
@ -18,11 +18,14 @@ let g:ale_fixers = {
|
|||
\ '*': ['remove_trailing_lines', 'trim_whitespace'],
|
||||
\ 'bash': ['shfmt'],
|
||||
\ 'json': ['prettier'],
|
||||
\ 'cpp': ['clang-format'],
|
||||
\ 'css': ['prettier'],
|
||||
\ 'html': ['prettier'],
|
||||
\ 'markdown': ['prettier'],
|
||||
\ 'java': ['eclipselsp'],
|
||||
\ 'yaml': ['prettier'],
|
||||
\ 'python': ['black', 'isort'],
|
||||
\ 'go': ['gofmt', 'goimports'],
|
||||
\ 'go': ['gofmt', "goimports"],
|
||||
\ 'rust': ['rustfmt'],
|
||||
\ "javascript": ["prettier", "eslint"],
|
||||
\ "vue": ["prettier", "eslint"]
|
||||
|
@ -30,18 +33,25 @@ let g:ale_fixers = {
|
|||
|
||||
let g:ale_python_bandit_options = "-c banditrc"
|
||||
let g:ale_python_pylint_options = "--rcfile pylintrc --disable=W0511"
|
||||
let g:ale_cpp_clang_options = '-std=c++17 -Wall -Wpedantic'
|
||||
let g:ale_cpp_gcc_options = '-std=c++17 -Wall -Wpedantic'
|
||||
let g:ale_cpp_cc_options = '-std=c++17 -Wall -Wpedantic'
|
||||
|
||||
|
||||
let g:ale_linter_aliases = {'vue': ['vue', 'javascript']}
|
||||
let g:ale_linters = {
|
||||
\ 'bash': ['bashlint', "shellcheck"],
|
||||
\ 'go': ['golangci-lint'],
|
||||
\ 'python': ['pyls', 'pylint', 'bandit', 'mypy'],
|
||||
\ 'go': ['gopls', 'gobuild'],
|
||||
\ 'rust': ['rustc'],
|
||||
\ 'yaml': ['yamllint'],
|
||||
\ 'javascript': ["yarn lint", "eslint", "vls"]
|
||||
\}
|
||||
|
||||
let g:ack_default_options = " --cc --cpp --shell --python --html --js --vue"
|
||||
let g:ale_completion_enabled = 1
|
||||
let g:ale_completion_autoimport = 1
|
||||
|
||||
let g:ale_set_quickfix=1
|
||||
let g:ale_set_loclist=0
|
||||
" let g:ale_open_list = 1
|
||||
|
|
Loading…
Reference in New Issue
Block a user