mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
lsp: Use correct bufnr for documentHighlight handler (#13622)
This commit is contained in:
parent
a58c5509d9
commit
93762072d1
@ -253,9 +253,8 @@ M['textDocument/signatureHelp'] = function(_, method, result)
|
|||||||
end
|
end
|
||||||
|
|
||||||
--@see https://microsoft.github.io/language-server-protocol/specifications/specification-current/#textDocument_documentHighlight
|
--@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
|
if not result then return end
|
||||||
local bufnr = api.nvim_get_current_buf()
|
|
||||||
util.buf_highlight_references(bufnr, result)
|
util.buf_highlight_references(bufnr, result)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user