-
Question (Request)Is it possible to start That is, if I run Any idea? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 6 replies
-
Yes, since |
Beta Was this translation helpful? Give feedback.
-
@nyngwang, update fzf-lua to the latest commit and use fzf's require("fzf-lua").tabs(function()
local curtab = vim.fn.tabpagenr()
local pos = 1
for i, t in ipairs(vim.api.nvim_list_tabpages()) do
if i < curtab then
pos = pos + 1 + #vim.api.nvim_tabpage_list_wins(t)
end
end
return {
keymap = {
fzf = { load = string.format("transform:echo 'pos(%d)'", pos) },
}
}
end) As for your other questions, you're in the wrong thread and in any event you'll have to figure it out by yourself as unfortunately I don't have time for detailed answers ATM. |
Beta Was this translation helpful? Give feedback.
-
FYI, this is now builtin due to #2049. |
Beta Was this translation helpful? Give feedback.
@nyngwang, update fzf-lua to the latest commit and use fzf's
load
event to scroll to the selected tab, adjust your keybind to this function:As for your other questions, you're in the wrong thread and in any event you'll have to figure it out by yourself as unfortunately I don't have time for detailed answers ATM.