Skip to content

Commit 9999a39

Browse files
Update code example on how to update Neovim LSP log level (#25284)
## Summary Update deprecated neovim syntax in the editor setup docs. `vim.lsp.set_log_level` is deprecated as of neovim 0.12. [See neovim docs](https://neovim.io/doc/user/deprecated/#deprecated-0.12) ## Test Plan Docs only changes. Tested locally using `mkdocs`. Co-authored-by: Oscar Caballero <oscar.caballero@veeva.com>
1 parent 67d8c54 commit 9999a39

1 file changed

Lines changed: 11 additions & 3 deletions

File tree

docs/editors/setup.md

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -161,9 +161,17 @@ file with the [`logFile`](./settings.md#logfile) setting.
161161

162162
To view the trace logs between Neovim and Ruff, set the log level for Neovim's LSP client to `debug`:
163163

164-
```lua
165-
vim.lsp.set_log_level('debug')
166-
```
164+
=== "Neovim 0.12+"
165+
166+
```lua
167+
vim.lsp.log.set_level('debug')
168+
```
169+
170+
=== "Neovim 0.11"
171+
172+
```lua
173+
vim.lsp.set_log_level('debug')
174+
```
167175

168176
<details>
169177
<summary>With the <a href="https://github.com/stevearc/conform.nvim"><code>conform.nvim</code></a> plugin for Neovim.</summary>

0 commit comments

Comments
 (0)