From 6a31a030ff28ad51be422d7ddd91f678540b2ecc Mon Sep 17 00:00:00 2001 From: t14 Date: Wed, 26 Jun 2024 16:40:39 +0200 Subject: [PATCH] vimrc(ale): fix ruff as fixer --- .vim/python.vimrc.vim | 5 ++++- .vim/vimrc | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.vim/python.vimrc.vim b/.vim/python.vimrc.vim index f818d2f..ea852a9 100644 --- a/.vim/python.vimrc.vim +++ b/.vim/python.vimrc.vim @@ -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 diff --git a/.vim/vimrc b/.vim/vimrc index 0a4a6a8..b601c66 100644 --- a/.vim/vimrc +++ b/.vim/vimrc @@ -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'],