mirror of
https://github.com/neovim/neovim.git
synced 2025-10-21 01:02:09 +00:00
fix(lsp): deprecate vim.lsp.set_log_level, vim.lsp.get_log_path #35274
This commit is contained in:

committed by
GitHub

parent
b52f9a19b3
commit
f7802dd5d5
@@ -4,13 +4,13 @@
|
||||
--- When debugging language servers, it is helpful to enable extra-verbose logging of the LSP client
|
||||
--- RPC events. Example:
|
||||
--- ```lua
|
||||
--- vim.lsp.set_log_level 'trace'
|
||||
--- vim.lsp.log.set_level 'trace'
|
||||
--- require('vim.lsp.log').set_format_func(vim.inspect)
|
||||
--- ```
|
||||
---
|
||||
--- Then try to run the language server, and open the log with:
|
||||
--- ```vim
|
||||
--- :lua vim.cmd('tabnew ' .. vim.lsp.get_log_path())
|
||||
--- :lua vim.cmd('tabnew ' .. vim.lsp.log.get_filename())
|
||||
--- ```
|
||||
---
|
||||
--- (Or use `:LspLog` if you have nvim-lspconfig installed.)
|
||||
|
Reference in New Issue
Block a user