Commit 54005a6
feat: more options can be function
Fix
#1870 (reply in thread).
```lua
require('fzf-lua').setup {
tabs = {
keymap = function()
local curtab = fn.tabpagenr()
local pos = 1
for i, t in ipairs(api.nvim_list_tabpages()) do
if i < curtab then pos = pos + 1 +
#api.nvim_tabpage_list_wins(t) end
end
return { fzf = { load = string.format("transform:echo 'pos(%d)'",
pos) } }
end,
},
}
```1 parent f970eaf commit 54005a6
1 file changed
Lines changed: 9 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
127 | 127 | | |
128 | 128 | | |
129 | 129 | | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
130 | 135 | | |
131 | 136 | | |
132 | 137 | | |
| |||
223 | 228 | | |
224 | 229 | | |
225 | 230 | | |
226 | | - | |
227 | | - | |
228 | | - | |
229 | | - | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
230 | 235 | | |
231 | 236 | | |
232 | 237 | | |
| |||
0 commit comments