mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-28 21:04:51 +00:00
Tweak LSP docs
This commit is contained in:
parent
20b9b44973
commit
bc9ed0a4ef
1 changed files with 6 additions and 5 deletions
11
README.md
11
README.md
|
@ -1038,7 +1038,7 @@ Upon successful installation, you should see Ruff's diagnostics surfaced directl
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
To use `ruff-lsp` with other editors, see the [`ruff-lsp` documentation](https://github.com/charliermarsh/ruff-lsp#installation-and-usage).
|
To use `ruff-lsp` with other editors, including Sublime Text and Helix, see the [`ruff-lsp` documentation](https://github.com/charliermarsh/ruff-lsp#installation-and-usage).
|
||||||
|
|
||||||
### Language Server Protocol (Unofficial)
|
### Language Server Protocol (Unofficial)
|
||||||
|
|
||||||
|
@ -1081,9 +1081,12 @@ require'lspconfig'.pylsp.setup {
|
||||||
### Vim & Neovim
|
### Vim & Neovim
|
||||||
|
|
||||||
Ruff can be integrated into any editor that supports the Language Server Protocol via [`ruff-lsp`](https://github.com/charliermarsh/ruff-lsp)
|
Ruff can be integrated into any editor that supports the Language Server Protocol via [`ruff-lsp`](https://github.com/charliermarsh/ruff-lsp)
|
||||||
(see: [Language Server Protocol](#language-server-protocol-official)).
|
(see: [Language Server Protocol](#language-server-protocol-official)), including Vim and Neovim.
|
||||||
|
|
||||||
Ruff is also available as part of the [coc-pyright](https://github.com/fannheyward/coc-pyright)
|
It's recommended that you use [`ruff-lsp`](https://github.com/charliermarsh/ruff-lsp), the
|
||||||
|
officially supported LSP server for Ruff.
|
||||||
|
|
||||||
|
However, Ruff is also available as part of the [coc-pyright](https://github.com/fannheyward/coc-pyright)
|
||||||
extension for `coc.nvim`.
|
extension for `coc.nvim`.
|
||||||
|
|
||||||
<details>
|
<details>
|
||||||
|
@ -1100,7 +1103,6 @@ tools:
|
||||||
format-command: 'ruff --stdin-filename ${INPUT} --config ~/myconfigs/linters/ruff.toml --fix --exit-zero --quiet -'
|
format-command: 'ruff --stdin-filename ${INPUT} --config ~/myconfigs/linters/ruff.toml --fix --exit-zero --quiet -'
|
||||||
format-stdin: true
|
format-stdin: true
|
||||||
```
|
```
|
||||||
|
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
<details>
|
<details>
|
||||||
|
@ -1137,7 +1139,6 @@ null_ls.setup({
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
```
|
```
|
||||||
|
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue