mirror of https://github.com/astral-sh/ruff
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:
parent
924741cb11
commit
ec2c7cad0e
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Reference in New Issue