added missing 'offset_encoding' to 'vim.lsp.util.jump_to_location'

main
bhagwan 2 years ago
parent 59fdcdc3e0
commit e532ffa480

@ -90,7 +90,7 @@ M.vimcmd_file = function(vimcmd, selected, opts)
-- Java LSP entries, 'jdt://...'
if entry.uri then
if not is_term then vim.cmd("normal! m`") end
vim.lsp.util.jump_to_location(entry)
vim.lsp.util.jump_to_location(entry, "utf-16")
if not is_term then vim.cmd("norm! zvzz") end
else
-- only change buffer if we need to (issue #122)

@ -270,7 +270,7 @@ function Previewer.buffer_or_file:populate_preview_buf(entry_str)
-- LSP 'jdt://' entries, see issue #195
-- https://github.com/ibhagwan/fzf-lua/issues/195
vim.api.nvim_win_call(self.win.preview_winid, function()
vim.lsp.util.jump_to_location(entry)
vim.lsp.util.jump_to_location(entry, "utf-16")
self.preview_bufnr = vim.api.nvim_get_current_buf()
end)
self:preview_buf_post(entry)

Loading…
Cancel
Save