diff options
author | Adam P. Regasz-Rethy <rethy.spud@gmail.com> | 2020-12-28 18:05:30 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-29 00:05:30 +0100 |
commit | 93762072d13477f1847ddd918840323e4e1322dc (patch) | |
tree | af01485c68e03b4fb6bdcee09208d730e248887c /runtime/lua/vim/lsp/handlers.lua | |
parent | a58c5509d94f01f4a4edd6b4784f8d00b70af5b3 (diff) | |
download | rneovim-93762072d13477f1847ddd918840323e4e1322dc.tar.gz rneovim-93762072d13477f1847ddd918840323e4e1322dc.tar.bz2 rneovim-93762072d13477f1847ddd918840323e4e1322dc.zip |
lsp: Use correct bufnr for documentHighlight handler (#13622)
Diffstat (limited to 'runtime/lua/vim/lsp/handlers.lua')
-rw-r--r-- | runtime/lua/vim/lsp/handlers.lua | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/runtime/lua/vim/lsp/handlers.lua b/runtime/lua/vim/lsp/handlers.lua index a3bf61ba0b..359573beb1 100644 --- a/runtime/lua/vim/lsp/handlers.lua +++ b/runtime/lua/vim/lsp/handlers.lua @@ -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 |