Skip to content

Commit

Permalink
Recommend client config for trace setting in Neovim (#12562)
Browse files Browse the repository at this point in the history
  • Loading branch information
dhruvmanila authored Jul 29, 2024
1 parent e1076db commit 9495331
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/editors/setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
`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:

```lua
require('lspconfig').ruff.setup {
cmd_env = { RUFF_TRACE = "messages" }
trace = 'messages',
init_options = {
settings = {
logLevel = "debug",
logLevel = 'debug',
}
}
}
Expand Down

0 comments on commit 9495331

Please sign in to comment.