mirror of
https://github.com/neovim/neovim.git
synced 2025-09-07 11:58:17 +00:00
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:
@@ -370,7 +370,7 @@ Handlers can be set by (in increasing priority):
|
|||||||
vim.lsp.start {
|
vim.lsp.start {
|
||||||
..., -- Other configuration omitted.
|
..., -- Other configuration omitted.
|
||||||
handlers = {
|
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.
|
Sets the current log level.
|
||||||
|
|
||||||
Parameters: ~
|
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()*
|
should_log({level}) *vim.lsp.log.should_log()*
|
||||||
Checks whether the level is sufficient for logging.
|
Checks whether the level is sufficient for logging.
|
||||||
|
@@ -60,8 +60,6 @@ API
|
|||||||
This is not expected to break clients because there are no known clients
|
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
|
that actually use the `return_type` field or the parameter type names
|
||||||
reported by |--api-info| or |nvim_get_api_info()|.
|
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
|
• Renamed `nvim__id_dictionary` (unsupported/experimental API) to
|
||||||
`nvim__id_dict`.
|
`nvim__id_dict`.
|
||||||
|
|
||||||
@@ -201,6 +199,8 @@ API
|
|||||||
• |nvim__ns_set()| can set properties for a namespace
|
• |nvim__ns_set()| can set properties for a namespace
|
||||||
• |nvim_echo()| `err` field to print error messages and `chunks` accepts
|
• |nvim_echo()| `err` field to print error messages and `chunks` accepts
|
||||||
highlight group IDs.
|
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".
|
• |nvim_open_win()| `relative` field can be set to "laststatus" and "tabline".
|
||||||
• Additions to |nvim_buf_set_extmark()|:
|
• Additions to |nvim_buf_set_extmark()|:
|
||||||
• `conceal_lines` field to conceal an entire line.
|
• `conceal_lines` field to conceal an entire line.
|
||||||
|
@@ -148,7 +148,7 @@ log.trace = create_logger('TRACE', log_levels.TRACE)
|
|||||||
log.warn = create_logger('WARN', log_levels.WARN)
|
log.warn = create_logger('WARN', log_levels.WARN)
|
||||||
|
|
||||||
--- Sets the current log level.
|
--- 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)
|
function log.set_level(level)
|
||||||
if type(level) == 'string' then
|
if type(level) == 'string' then
|
||||||
current_log_level =
|
current_log_level =
|
||||||
|
Reference in New Issue
Block a user