Skip to content

Commit b1faa06

Browse files
authored
fix: deprecation warning on go to definition hover action (nvim 0.11) (#711)
1 parent 6160a1a commit b1faa06

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/rustaceanvim/compat.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ end
2121
---@param offset_encoding 'utf-8'|'utf-16'|'utf-32'?
2222
---@return boolean `true` if the jump succeeded
2323
function compat.show_document(location, offset_encoding)
24-
local show_document = vim.lsp.show_document
24+
local show_document = vim.lsp.util.show_document
2525
if not show_document then
2626
return vim.lsp.util.jump_to_location(location, offset_encoding or 'utf-8')
2727
end

0 commit comments

Comments
 (0)