lsp: Use correct bufnr for documentHighlight handler (#13622)

This commit is contained in:
Adam P. Regasz-Rethy 2020-12-28 18:05:30 -05:00 committed by GitHub
parent a58c5509d9
commit 93762072d1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -253,9 +253,8 @@ M['textDocument/signatureHelp'] = function(_, method, result)
end
--@see https://microsoft.github.io/language-server-protocol/specifications/specification-current/#textDocument_documentHighlight
M['textDocument/documentHighlight'] = function(_, _, result, _)
M['textDocument/documentHighlight'] = function(_, _, result, _, bufnr, _)
if not result then return end
local bufnr = api.nvim_get_current_buf()
util.buf_highlight_references(bufnr, result)
end