vimrc(ale): fix ruff as fixer

This commit is contained in:
t14 2024-06-26 16:40:39 +02:00
parent ca5cdf745c
commit 6a31a030ff
Signed by: wanderer
SSH Key Fingerprint: SHA256:szgNfbjbimyesAS1xfRZ0DY3hcNv9xC9ocRCJjD4Wgg
2 changed files with 5 additions and 2 deletions

@ -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'],