vimrc(ale): fix ruff as fixer
This commit is contained in:
parent
ca5cdf745c
commit
6a31a030ff
@ -19,7 +19,10 @@ let g:jedi#smart_auto_mappings = 0
|
||||
|
||||
" ale
|
||||
:call extend(g:ale_linters, {
|
||||
\'python': ['flake8'], })
|
||||
\'python': ['ruff', 'flake8'], })
|
||||
|
||||
:call extend(g:ale_fixers, {
|
||||
\'python': ['ruff_format'], })
|
||||
|
||||
" vim-airline
|
||||
let g:airline#extensions#virtualenv#enabled = 1
|
||||
|
@ -357,7 +357,7 @@ let g:ale_linters = {
|
||||
\ }
|
||||
let g:ale_fixers = { 'c': ['clang-format', 'clangd', 'clangtidy', 'cquery', 'flawfinder'],
|
||||
\ 'cpp': ['clang-format', 'clangtidy'],
|
||||
\ 'python': ['ruff', 'nayvy#ale_fixer', 'isort', 'yapf'],
|
||||
\ 'python': ['ruff_format', 'nayvy#ale_fixer', 'isort', 'yapf'],
|
||||
\ 'go': ['gofumpt'],
|
||||
\ 'nix': ['alejandra', 'nixpkgs-fmt'],
|
||||
\ 'rust': ['rustfmt', 'trim_whitespace', 'remove_trailing_lines'],
|
||||
|
Loading…
Reference in New Issue
Block a user