From ec2c7cad0e7103f27096b910b949a02a69ba3c45 Mon Sep 17 00:00:00 2001 From: Pierre GIRAUD Date: Thu, 14 Nov 2024 14:01:34 +0100 Subject: [PATCH] Improve docs for ALE plugin for vim (#14335) 2 different fixers are available in ALE : - ruff which runs `ruff check --fix` command (useful for example when isort is enabled in lint config), - ruff_format which runs `run format` command. The documentation was missing `ruff` as a possible fixer in ALE. --------- Co-authored-by: Dhruv Manilawala --- docs/editors/setup.md | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/docs/editors/setup.md b/docs/editors/setup.md index 472abaed684de..d1b46def3d7b6 100644 --- a/docs/editors/setup.md +++ b/docs/editors/setup.md @@ -150,12 +150,15 @@ extension for [coc.nvim](https://github.com/neoclide/coc.nvim). With the ALE plugin for Vim or Neovim. ```vim -" Linter +" Linters let g:ale_linters = { "python": ["ruff"] } -" Formatter -let g:ale_fixers = { "python": ["ruff_format"] } +" Fixers +let g:ale_fixers = { "python": ["ruff", "ruff_format"] } ``` +For the fixers, `ruff` will run `ruff check --fix` (to fix all auto-fixable problems) whereas +`ruff_format` will run `ruff format`. +