You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A Language Server Protocol implementation for Ruff, an extremely fast Python linter and code formatter, written in Rust. It can be installed via pip.
21
+
A Language Server Protocol implementation for Ruff, an extremely fast Python linter and code formatter, written in Rust. It can be installed via `pip`.
22
22
23
23
```sh
24
24
pip install ruff
25
25
```
26
26
27
-
_Requires Ruff v0.3.3 or later._
27
+
**Available in Ruff `v0.4.5` in beta and stabilized in Ruff `v0.5.3`.**
28
28
29
-
This is the new Rust-based version of the original `ruff-lsp` implementation. It's currently in alpha, meaning that some features are under development. Currently, the following capabilities are supported:
29
+
This is the new built-in language server written in Rust. It supports the same feature set as `ruff-lsp`, but with superior performance and no installation required. Note that the `ruff-lsp` server will continue to be maintained until further notice.
30
30
31
-
1. Diagnostics
32
-
2. Code actions
33
-
3. Formatting
34
-
4. Range Formatting
31
+
Server settings can be provided via:
35
32
36
-
Please note that the `ruff-lsp` server will continue to be maintained until further notice.
33
+
```lua
34
+
require('lspconfig').ruff.setup({
35
+
init_options = {
36
+
settings = {
37
+
-- Server settings should go here
38
+
}
39
+
}
40
+
})
41
+
42
+
Refer to the [documentation](https://docs.astral.sh/ruff/editors/) for more details.
0 commit comments