1
0
mirror of https://git.decapod.one/brethil/dotfiles synced 2024-10-31 18:01:30 +01:00

vim: add isort as python fixer

This commit is contained in:
bretello 2020-05-14 17:47:40 +02:00
parent 3b1bb9528d
commit a8ab1d80b5

View File

@ -19,13 +19,14 @@ let g:ale_fixers = {
\ 'json': ['prettier'], \ 'json': ['prettier'],
\ 'css': ['prettier'], \ 'css': ['prettier'],
\ 'markdown': ['prettier'], \ 'markdown': ['prettier'],
\ 'python': ['black', 'reorder-python-imports'], \ 'python': ['black', 'isort'],
\ 'go': ['gofmt', 'goimports'], \ 'go': ['gofmt', 'goimports'],
\ 'rust': ['rustfmt'], \ 'rust': ['rustfmt'],
\ "javascript": ["prettier", "eslint"], \ "javascript": ["prettier", "eslint"],
\ "vue": ["prettier", "eslint"] \ "vue": ["prettier", "eslint"]
\} \}
let g:ale_python_bandit_options = "-c banditrc" let g:ale_python_bandit_options = "-c banditrc"
let g:ale_python_isort_options = "--rc"
let g:ale_linter_aliases = {'vue': ['vue', 'javascript']} let g:ale_linter_aliases = {'vue': ['vue', 'javascript']}
let g:ale_linters = { let g:ale_linters = {