mirror of
https://github.com/neovim/neovim.git
synced 2025-11-07 11:14:26 +00:00
docs(lsp): do not use | as argument separator
This translates into a tag in the help doc.
This commit is contained in:
committed by
Dundar Göc
parent
b6e531c1d9
commit
5a24c2c83d
@@ -1347,18 +1347,18 @@ buf_clear_references({bufnr}) *vim.lsp.util.buf_clear_references()*
|
|||||||
Removes document highlights from a buffer.
|
Removes document highlights from a buffer.
|
||||||
|
|
||||||
Parameters: ~
|
Parameters: ~
|
||||||
{bufnr} buffer id
|
{bufnr} number Buffer id
|
||||||
|
|
||||||
*vim.lsp.util.buf_highlight_references()*
|
*vim.lsp.util.buf_highlight_references()*
|
||||||
buf_highlight_references({bufnr}, {references}, {offset_encoding})
|
buf_highlight_references({bufnr}, {references}, {offset_encoding})
|
||||||
Shows a list of document highlights for a certain buffer.
|
Shows a list of document highlights for a certain buffer.
|
||||||
|
|
||||||
Parameters: ~
|
Parameters: ~
|
||||||
{bufnr} buffer id
|
{bufnr} number Buffer id
|
||||||
{references} List of `DocumentHighlight` objects to
|
{references} table List of `DocumentHighlight`
|
||||||
highlight
|
objects to highlight
|
||||||
{offset_encoding} string utf-8|utf-16|utf-32|nil defaults
|
{offset_encoding} string One of "utf-8", "utf-16",
|
||||||
to utf-16
|
"utf-32", or nil. Defaults to utf-16
|
||||||
|
|
||||||
See also: ~
|
See also: ~
|
||||||
https://microsoft.github.io/language-server-protocol/specifications/specification-3-17/#documentHighlight
|
https://microsoft.github.io/language-server-protocol/specifications/specification-3-17/#documentHighlight
|
||||||
|
|||||||
@@ -1416,7 +1416,7 @@ do --[[ References ]]
|
|||||||
|
|
||||||
--- Removes document highlights from a buffer.
|
--- Removes document highlights from a buffer.
|
||||||
---
|
---
|
||||||
---@param bufnr buffer id
|
---@param bufnr number Buffer id
|
||||||
function M.buf_clear_references(bufnr)
|
function M.buf_clear_references(bufnr)
|
||||||
validate { bufnr = {bufnr, 'n', true} }
|
validate { bufnr = {bufnr, 'n', true} }
|
||||||
api.nvim_buf_clear_namespace(bufnr, reference_ns, 0, -1)
|
api.nvim_buf_clear_namespace(bufnr, reference_ns, 0, -1)
|
||||||
@@ -1424,9 +1424,9 @@ do --[[ References ]]
|
|||||||
|
|
||||||
--- Shows a list of document highlights for a certain buffer.
|
--- Shows a list of document highlights for a certain buffer.
|
||||||
---
|
---
|
||||||
---@param bufnr buffer id
|
---@param bufnr number Buffer id
|
||||||
---@param references List of `DocumentHighlight` objects to highlight
|
---@param references table List of `DocumentHighlight` objects to highlight
|
||||||
---@param offset_encoding string utf-8|utf-16|utf-32|nil defaults to utf-16
|
---@param offset_encoding string One of "utf-8", "utf-16", "utf-32", or nil. Defaults to utf-16
|
||||||
---@see https://microsoft.github.io/language-server-protocol/specifications/specification-3-17/#documentHighlight
|
---@see https://microsoft.github.io/language-server-protocol/specifications/specification-3-17/#documentHighlight
|
||||||
function M.buf_highlight_references(bufnr, references, offset_encoding)
|
function M.buf_highlight_references(bufnr, references, offset_encoding)
|
||||||
validate { bufnr = {bufnr, 'n', true} }
|
validate { bufnr = {bufnr, 'n', true} }
|
||||||
|
|||||||
Reference in New Issue
Block a user