mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-26 11:59:10 +00:00
Recommend client config for trace
setting in Neovim (#12562)
This commit is contained in:
parent
e1076db7d0
commit
9495331a5f
1 changed files with 3 additions and 3 deletions
|
@ -90,15 +90,15 @@ require('lspconfig').pyright.setup {
|
||||||
```
|
```
|
||||||
|
|
||||||
By default, Ruff will not show any logs. To enable logging in Neovim, you'll need to set the
|
By default, Ruff will not show any logs. To enable logging in Neovim, you'll need to set the
|
||||||
`RUFF_TRACE` environment variable to either `messages` or `verbose`, and use the
|
[`trace`](https://neovim.io/doc/user/lsp.html#vim.lsp.ClientConfig) setting to either `messages` or `verbose`, and use the
|
||||||
[`logLevel`](./settings.md#loglevel) setting to change the log level:
|
[`logLevel`](./settings.md#loglevel) setting to change the log level:
|
||||||
|
|
||||||
```lua
|
```lua
|
||||||
require('lspconfig').ruff.setup {
|
require('lspconfig').ruff.setup {
|
||||||
cmd_env = { RUFF_TRACE = "messages" }
|
trace = 'messages',
|
||||||
init_options = {
|
init_options = {
|
||||||
settings = {
|
settings = {
|
||||||
logLevel = "debug",
|
logLevel = 'debug',
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue