mirror of
https://github.com/neovim/neovim.git
synced 2024-12-24 13:15:09 -07: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
|
||||
|
||||
--@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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user