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

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