diff --git a/docs/integrations.md b/docs/integrations.md index 94f095dbd5..9d8cb4f449 100644 --- a/docs/integrations.md +++ b/docs/integrations.md @@ -273,26 +273,38 @@ tools:
-For neovim users using - - null-ls -, Ruff is already integrated. +With the conform.nvim plugin for Neovim.
```lua -local null_ls = require("null-ls") - -null_ls.setup({ - sources = { - null_ls.builtins.formatting.ruff, - null_ls.builtins.diagnostics.ruff, - } +require("conform").setup({ + formatters_by_ft = { + python = { + -- To fix lint errors. + "ruff_fix", + -- To run the Ruff formatter. + "ruff_format", + }, + }, }) ```
+
+ +With the nvim-lint plugin for Neovim. + + +```lua +require("lint").linters_by_ft = { + python = { "ruff" }, +} +``` + +
+ ## PyCharm (External Tool) Ruff can be installed as an [External Tool](https://www.jetbrains.com/help/pycharm/configuring-third-party-tools.html)