mirror of
https://git.decapod.one/brethil/dotfiles
synced 2024-11-22 19:41:31 +01:00
vim: add go linter/fixer
This commit is contained in:
parent
de5d903f00
commit
4472ada1b2
|
@ -24,6 +24,7 @@ let g:ale_fixers = {
|
||||||
\ 'css': ['prettier'],
|
\ 'css': ['prettier'],
|
||||||
\ 'markdown': ['prettier'],
|
\ 'markdown': ['prettier'],
|
||||||
\ 'python': ['black', 'reorder-python-imports'],
|
\ 'python': ['black', 'reorder-python-imports'],
|
||||||
|
\ 'go': ['gofmt', 'goimports'],
|
||||||
\ 'rust': ['rustfmt'],
|
\ 'rust': ['rustfmt'],
|
||||||
\ "javascript": ["prettier", "eslint"],
|
\ "javascript": ["prettier", "eslint"],
|
||||||
\ "vue": ["prettier", "eslint"]
|
\ "vue": ["prettier", "eslint"]
|
||||||
|
@ -32,6 +33,7 @@ let g:ale_linter_aliases = {'vue': ['vue', 'javascript']}
|
||||||
let g:ale_linters = {
|
let g:ale_linters = {
|
||||||
\ 'python': ['pyls', 'pylint', 'mypy', 'bandit'],
|
\ 'python': ['pyls', 'pylint', 'mypy', 'bandit'],
|
||||||
\ 'bash': ['bashlint', "shellcheck"],
|
\ 'bash': ['bashlint', "shellcheck"],
|
||||||
|
\ 'go': ['golint'],
|
||||||
\ 'rust': ['rustc'],
|
\ 'rust': ['rustc'],
|
||||||
\ 'yaml': ['yamllint'],
|
\ 'yaml': ['yamllint'],
|
||||||
\ 'javascript': ["yarn lint", "eslint", "vls"],
|
\ 'javascript': ["yarn lint", "eslint", "vls"],
|
||||||
|
|
Loading…
Reference in New Issue
Block a user