Is resume impacted by the reflow issue?
#2457
-
|
Hi there, thanks for all the hard work on this plugin! I noticed a little while ago that when I run
I experience no issues at any other time, it's only when I ExampleI can trigger it consistently but that's in my specific environment.
Note the shift happens as soon as I trigger resume, for some reason the 4th item
Note when I scroll over the 4th item it changes from scrolling down further fixes the other file names one at a time Configlocal fzf = require('fzf-lua')
local actions = require('fzf-lua.actions')
---@type string[]
local rg = {
'--column',
'--line-number',
'--no-heading',
'--color=always',
'--smart-case',
'--max-columns=4096',
'--hidden',
'-e',
}
fzf.setup({
actions = {
files = {
['enter'] = actions.file_switch_or_edit,
['ctrl-v'] = actions.file_vsplit,
['ctrl-x'] = actions.file_split,
['ctrl-t'] = actions.file_tabedit,
['ctrl-q'] = {
fn = actions.file_sel_to_qf,
prefix = 'select-all',
},
},
},
fzf_opts = {
['--cycle'] = true,
},
defaults = {
file_icons = 'mini',
formatter = 'path.filename_first',
},
grep = {
rg_opts = table.concat(rg, ' '),
},
lsp = {
jump1 = false,
includeDeclaration = false,
},
}) |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 1 reply
-
|
I have no idea why yet, but commenting out this single line of code seems to resolve the problem for me: https://github.com/ibhagwan/fzf-lua/blob/main/lua/fzf-lua/win.lua#L782 vim.bo[self.backdrop_buf].filetype = "fzflua_backdrop" |
Beta Was this translation helpful? Give feedback.
-
|
It seems to be a combination of plugins that lead to this, more likely it is just related to timing, but will dig into it more. |
Beta Was this translation helpful? Give feedback.
-
|
Ty @MeanderingProgrammer for the detailed report and analysis.
This makes me suspect it’s the reflow issue in #1929, once you’re in the fzf terminal window fzf-lua has very little control on the scrolling / rendering so this can only be an upstream issue (fzf / neovim or combination of both?).
You can try to disable the backdrop by setting |
Beta Was this translation helpful? Give feedback.
-
Makes sense
Ah that probably also would have done the trick. I'm still not sure how autocommands for one buffer effect the reflow of a different buffer, it's probably just an odd coincidence. I'm curious do you notice any difference with the change in #2458? |
Beta Was this translation helpful? Give feedback.



Ty @MeanderingProgrammer for the detailed report and analysis.
This makes me suspect it’s the reflow issue in #1929, once you’re in the fzf terminal window fzf-lua has very little control on the scrolling / rendering so this can only be an upstream issue (fzf / neovim or combination of both?).