mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
docs: Add some references to LSP specification (#15321)
This commit is contained in:
parent
cad5f01cf3
commit
a3d5f391cf
@ -240,6 +240,7 @@ end
|
||||
--- Applies a list of text edits to a buffer.
|
||||
--@param text_edits (table) list of `TextEdit` objects
|
||||
--@param buf_nr (number) Buffer id
|
||||
---@see https://microsoft.github.io/language-server-protocol/specifications/specification-current/#textEdit
|
||||
function M.apply_text_edits(text_edits, bufnr)
|
||||
if not next(text_edits) then return end
|
||||
if not api.nvim_buf_is_loaded(bufnr) then
|
||||
@ -1483,6 +1484,7 @@ do --[[ References ]]
|
||||
---
|
||||
--@param bufnr buffer id
|
||||
--@param references List of `DocumentHighlight` objects to highlight
|
||||
---@see https://microsoft.github.io/language-server-protocol/specifications/specification-3-17/#documentHighlight
|
||||
function M.buf_highlight_references(bufnr, references)
|
||||
validate { bufnr = {bufnr, 'n', true} }
|
||||
for _, reference in ipairs(references) do
|
||||
|
Loading…
Reference in New Issue
Block a user