Can't populate Menu component with jumplist #395
Unanswered
vunhatchuong
asked this question in
Q&A
Replies: 1 comment
-
Overall, I struggle to do things when inside the on_change = function(item, _)
local came_from = vim.fn.winbufnr(vim.fn.win_getid(vim.fn.winnr("#")))
local jump = item.jump
if jump then
vim.api.nvim_win_set_cursor(came_from, { jump.lnum, jump.col })
end
end, I want to have the functionality that when you hover over an item it will jump to the line to preview it. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I want to populate
lines
with the content of Vim'sjumplist
. butvim.fn.getjumplist()[1]
returns empty table.Beta Was this translation helpful? Give feedback.
All reactions