aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgithub-actions[bot] <github-actions[bot]@users.noreply.github.com>2024-03-22 05:43:45 +0000
committergithub-actions[bot] <github-actions[bot]@users.noreply.github.com>2024-03-22 05:43:45 +0000
commitbb2a32d16443b738543a5e4aac4b00fe2bfdeac9 (patch)
tree89fb681c14067cd2a47e0dc56f69fb55529f08ce
parentfeat: add the new Ruff language server (#3084) (diff)
downloadnvim-lspconfig-bb2a32d16443b738543a5e4aac4b00fe2bfdeac9.tar
nvim-lspconfig-bb2a32d16443b738543a5e4aac4b00fe2bfdeac9.tar.gz
nvim-lspconfig-bb2a32d16443b738543a5e4aac4b00fe2bfdeac9.tar.bz2
nvim-lspconfig-bb2a32d16443b738543a5e4aac4b00fe2bfdeac9.tar.lz
nvim-lspconfig-bb2a32d16443b738543a5e4aac4b00fe2bfdeac9.tar.xz
nvim-lspconfig-bb2a32d16443b738543a5e4aac4b00fe2bfdeac9.tar.zst
nvim-lspconfig-bb2a32d16443b738543a5e4aac4b00fe2bfdeac9.zip
docs: update server_configurations.md
skip-checks: true
-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