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 <dhruvmanila@gmail.com>
This commit is contained in:
Pierre GIRAUD 2024-11-14 14:01:34 +01:00 committed by GitHub
parent 924741cb11
commit ec2c7cad0e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 6 additions and 3 deletions

View File

@ -150,12 +150,15 @@ extension for [coc.nvim](https://github.com/neoclide/coc.nvim).
<summary>With the <a href="https://github.com/dense-analysis/ale">ALE</a> plugin for Vim or Neovim.</summary>
```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`.
</details>
<details>