-
Notifications
You must be signed in to change notification settings - Fork 154
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug: fzf crawls to a halt when scrolling through the preview on file search #1568
Comments
Probably related to treesitter, might be related to the beta of #1552.
:FzfLua buffers previewer.treesitter.context=false
:FzfLua buffers previewer.treesitter.enable=false
:FzfLua buffers previewer.syntax=false |
Thanks for having a look :)
Nope.
I also tried with I just tried
I get the same issue on a plain text file (131 lines).
I get the same issue on the same plain text file.
I get the same issue on the same plain text file. |
One thing I've noticed is that I can reproduce the issue very quickly if I just hold |
Perhaps some auto command in your config is causing this? Can you try with |
Good call. I've just tried |
I can't seem to reproruce this, can you try 1568 branch and let me know if this feels better and if you see fzf-lua messages saying Also can you try the below and lmk if any of these makes a difference? :FzfLua buffers winopts.preview.scrollbar=border -- the default
:FzfLua buffers winopts.preview.scrollbar=float
:FzfLua buffers winopts.preview.scrollbar=false |
I have a feeling this is related to the preview scrollbar of type |
Backward compat for `border` uses `float` code with a reversed bg|fg `FzfLuaScrollBorderFull` highlight as `FzfLuaScrollBorderBackCompat` Didn't make sense to keep the old code and was causing perf issues. Closes #1568
Sorry, just logged in now.
This indeed solved the issue! It works with the default settings. Thank you so much @ibhagwan :) |
Ty for the confirmation, happy my hunch worked and that was the issue :-) Was also a much needed change anyways. |
RTFM Checklist
man fzf
/ I am well versed in shell fzfOperating system
Linux
Shell
zsh
Neovim version (
nvim --version
)NVIM v0.10.2
Fzf version (
fzf --version
)N/A installed today with ./install --bin as per README
Output of
:lua print(os.getenv('FZF_DEFAULT_OPTS'))
nil
Is the problem reproducible with
mini.sh
?mini.sh
mini.sh
mini.sh
(not relevant, requires LSP, Windows, etc)Fzf-lua configuration
Describe the bug / steps to reproduce
I couldn't record too much to avoid the size limit, but, as seen on the video, if I scroll through the preview, it gets slower and slower until it just freezes. Then it continues after a few seconds but very laggy and slow. I'm trying to scroll during all the video, even when it shows the scroll has stopped and then continues.
Screencast.From.2024-12-14.16-24-09.mp4
The text was updated successfully, but these errors were encountered: