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
|
" ale
|
||||||
:call extend(g:ale_linters, {
|
:call extend(g:ale_linters, {
|
||||||
\'python': ['flake8'], })
|
\'python': ['ruff', 'flake8'], })
|
||||||
|
|
||||||
|
:call extend(g:ale_fixers, {
|
||||||
|
\'python': ['ruff_format'], })
|
||||||
|
|
||||||
" vim-airline
|
" vim-airline
|
||||||
let g:airline#extensions#virtualenv#enabled = 1
|
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'],
|
let g:ale_fixers = { 'c': ['clang-format', 'clangd', 'clangtidy', 'cquery', 'flawfinder'],
|
||||||
\ 'cpp': ['clang-format', 'clangtidy'],
|
\ 'cpp': ['clang-format', 'clangtidy'],
|
||||||
\ 'python': ['ruff', 'nayvy#ale_fixer', 'isort', 'yapf'],
|
\ 'python': ['ruff_format', 'nayvy#ale_fixer', 'isort', 'yapf'],
|
||||||
\ 'go': ['gofumpt'],
|
\ 'go': ['gofumpt'],
|
||||||
\ 'nix': ['alejandra', 'nixpkgs-fmt'],
|
\ 'nix': ['alejandra', 'nixpkgs-fmt'],
|
||||||
\ 'rust': ['rustfmt', 'trim_whitespace', 'remove_trailing_lines'],
|
\ 'rust': ['rustfmt', 'trim_whitespace', 'remove_trailing_lines'],
|
||||||
|
Loading…
Reference in New Issue
Block a user