aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--doc/server_configurations.md54
-rw-r--r--doc/server_configurations.txt54
2 files changed, 108 insertions, 0 deletions
diff --git a/doc/server_configurations.md b/doc/server_configurations.md
index 26e8a2bc..8a25b867 100644
--- a/doc/server_configurations.md
+++ b/doc/server_configurations.md
@@ -216,6 +216,7 @@ autogenerated from the Lua files. You can view this file in Nvim by running
- [rome](#rome)
- [rubocop](#rubocop)
- [ruby_ls](#ruby_ls)
+- [ruff](#ruff)
- [ruff_lsp](#ruff_lsp)
- [rune_languageserver](#rune_languageserver)
- [rust_analyzer](#rust_analyzer)
@@ -9443,6 +9444,59 @@ require'lspconfig'.ruby_ls.setup{}
```
+## ruff
+
+https://github.com/astral-sh/ruff
+
+A Language Server Protocol implementation for Ruff, an extremely fast Python linter and code formatter, written in Rust. It can be installed via pip.
+
+```sh
+pip install ruff
+```
+
+_Requires Ruff v0.3.3 or later._
+
+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:
+
+1. Diagnostics
+2. Code actions
+3. Formatting
+4. Range Formatting
+
+Please note that the `ruff-lsp` server will continue to be maintained until further notice.
+
+
+
+
+**Snippet to enable the language server:**
+```lua
+require'lspconfig'.ruff.setup{}
+```
+
+
+**Default values:**
+ - `cmd` :
+ ```lua
+ { "ruff", "server", "--preview" }
+ ```
+ - `filetypes` :
+ ```lua
+ { "python" }
+ ```
+ - `root_dir` :
+ ```lua
+ see source file
+ ```
+ - `settings` :
+ ```lua
+ {}
+ ```
+ - `single_file_support` :
+ ```lua
+ true
+ ```
+
+
## ruff_lsp
https://github.com/astral-sh/ruff-lsp
diff --git a/doc/server_configurations.txt b/doc/server_configurations.txt
index 26e8a2bc..8a25b867 100644
--- a/doc/server_configurations.txt
+++ b/doc/server_configurations.txt
@@ -216,6 +216,7 @@ autogenerated from the Lua files. You can view this file in Nvim by running
- [rome](#rome)
- [rubocop](#rubocop)
- [ruby_ls](#ruby_ls)
+- [ruff](#ruff)
- [ruff_lsp](#ruff_lsp)
- [rune_languageserver](#rune_languageserver)
- [rust_analyzer](#rust_analyzer)
@@ -9443,6 +9444,59 @@ require'lspconfig'.ruby_ls.setup{}
```
+## ruff
+
+https://github.com/astral-sh/ruff
+
+A Language Server Protocol implementation for Ruff, an extremely fast Python linter and code formatter, written in Rust. It can be installed via pip.
+
+```sh
+pip install ruff
+```
+
+_Requires Ruff v0.3.3 or later._
+
+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:
+
+1. Diagnostics
+2. Code actions
+3. Formatting
+4. Range Formatting
+
+Please note that the `ruff-lsp` server will continue to be maintained until further notice.
+
+
+
+
+**Snippet to enable the language server:**
+```lua
+require'lspconfig'.ruff.setup{}
+```
+
+
+**Default values:**
+ - `cmd` :
+ ```lua
+ { "ruff", "server", "--preview" }
+ ```
+ - `filetypes` :
+ ```lua
+ { "python" }
+ ```
+ - `root_dir` :
+ ```lua
+ see source file
+ ```
+ - `settings` :
+ ```lua
+ {}
+ ```
+ - `single_file_support` :
+ ```lua
+ true
+ ```
+
+
## ruff_lsp
https://github.com/astral-sh/ruff-lsp