aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/lsp/util.lua
diff options
context:
space:
mode:
authormax397574 <81827001+max397574@users.noreply.github.com>2021-08-09 19:45:00 +0200
committerGitHub <noreply@github.com>2021-08-09 19:45:00 +0200
commita3d5f391cfa3685b2127b176ed078a393176fc84 (patch)
treef9e54daff62e2b359d09f4ba5dd6de195c16d7d6 /runtime/lua/vim/lsp/util.lua
parentcad5f01cf3c3be775329ac19d4f7fd9f4b808a69 (diff)
downloadrneovim-a3d5f391cfa3685b2127b176ed078a393176fc84.tar.gz
rneovim-a3d5f391cfa3685b2127b176ed078a393176fc84.tar.bz2
rneovim-a3d5f391cfa3685b2127b176ed078a393176fc84.zip
docs: Add some references to LSP specification (#15321)
Diffstat (limited to 'runtime/lua/vim/lsp/util.lua')
-rw-r--r--runtime/lua/vim/lsp/util.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/runtime/lua/vim/lsp/util.lua b/runtime/lua/vim/lsp/util.lua
index 4c3ceaf503..6e36635dbd 100644
--- a/runtime/lua/vim/lsp/util.lua
+++ b/runtime/lua/vim/lsp/util.lua
@@ -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