Recommend client config for `trace` setting in Neovim (#12562)

This commit is contained in:
Dhruv Manilawala 2024-07-29 11:44:34 +05:30 committed by GitHub
parent e1076db7d0
commit 9495331a5f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 3 deletions

View File

@ -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',
} }
} }
} }