Skip to content

Commit

Permalink
docs: update server_configurations.md
Browse files Browse the repository at this point in the history
skip-checks: true
  • Loading branch information
github-actions committed Dec 21, 2022
1 parent 4e13145 commit baab771
Show file tree
Hide file tree
Showing 2 changed files with 112 additions and 0 deletions.
56 changes: 56 additions & 0 deletions doc/server_configurations.md
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ autogenerated from the Lua files. You can view this file in Nvim by running
- [robotframework_ls](#robotframework_ls)
- [rome](#rome)
- [ruby_ls](#ruby_ls)
- [ruff-lsp](#ruff-lsp)
- [rust_analyzer](#rust_analyzer)
- [salt_ls](#salt_ls)
- [scheme_langserver](#scheme_langserver)
Expand Down Expand Up @@ -6109,6 +6110,61 @@ require'lspconfig'.ruby_ls.setup{}
```


## ruff-lsp

https://github.com/charliermarsh/ruff-lsp

A Language Server Protocol implementation for Ruff, an extremely fast Python linter and code transformation tool, written in Rust. It can be installed via pip

```sh
pip install ruff-lsp
```

Extra CLI arguments for `ruff` can be provided via

```lua
require'lspconfig'.ruff_lsp.setup{
settings = {
ruff_lsp = {
-- Any extra CLI arguments for `ruff` go here.
args = {},
}
}
}
```




**Snippet to enable the language server:**
```lua
require'lspconfig'.ruff-lsp.setup{}
```


**Default values:**
- `cmd` :
```lua
{ "ruff-lsp" }
```
- `filetypes` :
```lua
{ "python" }
```
- `root_dir` :
```lua
see source file
```
- `settings` :
```lua
{}
```
- `single_file_support` :
```lua
true
```


## rust_analyzer

https://github.com/rust-analyzer/rust-analyzer
Expand Down
56 changes: 56 additions & 0 deletions doc/server_configurations.txt
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ autogenerated from the Lua files. You can view this file in Nvim by running
- [robotframework_ls](#robotframework_ls)
- [rome](#rome)
- [ruby_ls](#ruby_ls)
- [ruff-lsp](#ruff-lsp)
- [rust_analyzer](#rust_analyzer)
- [salt_ls](#salt_ls)
- [scheme_langserver](#scheme_langserver)
Expand Down Expand Up @@ -6109,6 +6110,61 @@ require'lspconfig'.ruby_ls.setup{}
```


## ruff-lsp

https://github.com/charliermarsh/ruff-lsp

A Language Server Protocol implementation for Ruff, an extremely fast Python linter and code transformation tool, written in Rust. It can be installed via pip

```sh
pip install ruff-lsp
```

Extra CLI arguments for `ruff` can be provided via

```lua
require'lspconfig'.ruff_lsp.setup{
settings = {
ruff_lsp = {
-- Any extra CLI arguments for `ruff` go here.
args = {},
}
}
}
```




**Snippet to enable the language server:**
```lua
require'lspconfig'.ruff-lsp.setup{}
```


**Default values:**
- `cmd` :
```lua
{ "ruff-lsp" }
```
- `filetypes` :
```lua
{ "python" }
```
- `root_dir` :
```lua
see source file
```
- `settings` :
```lua
{}
```
- `single_file_support` :
```lua
true
```


## rust_analyzer

https://github.com/rust-analyzer/rust-analyzer
Expand Down

0 comments on commit baab771

Please sign in to comment.