docs: misc (#32928)

Co-authored-by: James Trew <j.trew10@gmail.com>
Co-authored-by: przepompownia <przepompownia@users.noreply.github.com>
This commit is contained in:
dundargoc
2025-03-21 12:28:29 +01:00
committed by GitHub
parent 264b4303a0
commit e0cd8cfba4
3 changed files with 5 additions and 5 deletions

View File

@@ -370,7 +370,7 @@ Handlers can be set by (in increasing priority):
vim.lsp.start {
..., -- Other configuration omitted.
handlers = {
['textDocument/publishDiagnostics'] = my_custom_server_definition
['textDocument/publishDiagnostics'] = my_custom_diagnostics_handler
},
}
@@ -2498,7 +2498,7 @@ set_level({level}) *vim.lsp.log.set_level()*
Sets the current log level.
Parameters: ~
• {level} (`string|integer`) One of `vim.lsp.log.levels`
• {level} (`string|integer`) One of |vim.log.levels|
should_log({level}) *vim.lsp.log.should_log()*
Checks whether the level is sufficient for logging.

View File

@@ -60,8 +60,6 @@ API
This is not expected to break clients because there are no known clients
that actually use the `return_type` field or the parameter type names
reported by |--api-info| or |nvim_get_api_info()|.
• |nvim_open_win()| supports a `mouse` field that allows configuring mouse
interaction with the window separately from `focusable` field.
• Renamed `nvim__id_dictionary` (unsupported/experimental API) to
`nvim__id_dict`.
@@ -201,6 +199,8 @@ API
• |nvim__ns_set()| can set properties for a namespace
• |nvim_echo()| `err` field to print error messages and `chunks` accepts
highlight group IDs.
• |nvim_open_win()| supports a `mouse` field that allows configuring mouse
interaction with the window separately from `focusable` field.
• |nvim_open_win()| `relative` field can be set to "laststatus" and "tabline".
• Additions to |nvim_buf_set_extmark()|:
• `conceal_lines` field to conceal an entire line.

View File

@@ -148,7 +148,7 @@ log.trace = create_logger('TRACE', log_levels.TRACE)
log.warn = create_logger('WARN', log_levels.WARN)
--- Sets the current log level.
---@param level (string|integer) One of `vim.lsp.log.levels`
---@param level (string|integer) One of |vim.log.levels|
function log.set_level(level)
if type(level) == 'string' then
current_log_level =