From 749df87de07c2fe0ca1eca99129a0b75fb277a58 Mon Sep 17 00:00:00 2001 From: Charlie Marsh Date: Thu, 17 Nov 2022 12:04:11 -0500 Subject: [PATCH] Tweak presentation of `null-ls` and `efm` docs (#791) --- README.md | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 54e4efbf8c..4895c82a16 100644 --- a/README.md +++ b/README.md @@ -650,13 +650,24 @@ Ruff should then appear as a runnable action: Ruff is available as part of the [coc-pyright](https://github.com/fannheyward/coc-pyright) extension for coc.nvim. -Ruff can also be integrated via [efm](https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md#efm) -in just a [few lines](https://github.com/JafarAbdi/myconfigs/blob/6f0b6b2450e92ec8fc50422928cd22005b919110/efm-langserver/config.yaml#L14-L20). +
+Ruff can also be integrated via efm in just a few lines. +
-For neovim users using [`null-ls`](https://github.com/jose-elias-alvarez/null-ls.nvim), this is already [integrated](https://github.com/jose-elias-alvarez/null-ls.nvim). +```yaml +tools: + python-ruff: &python-ruff + lint-command: 'ruff --config ~/myconfigs/linters/ruff.toml --quiet ${INPUT}' + lint-stdin: true + lint-formats: + - '%f:%l:%c: %m' + format-command: 'ruff --stdin-filename ${INPUT} --config ~/myconfigs/linters/ruff.toml --fix --exit-zero --quiet -' + format-stdin: true +``` +
-However, to enable ruff in null-ls for both diagnostics and formatting: +For neovim users using null-ls, Ruff is already integrated.
```lua