Why my fzf-lua is soo slow? #1761
-
It used to be fast. Well, not as fast as LeaderF, But It was good. I switched to this one because it integrates perfectly with neovim and have minimal and nice ui. I faced this slowness for a long time. So, I created a minimal config, but it was still super slow. The UI loads fast but then takes like a second or two to show files. And here is just 4 files 😆 still takes time. Here is the config I'm using in Lazy plugin manager. Maybe I'm doing something wrong but what?! --> fuzzy file finder
{
"ibhagwan/fzf-lua",
cmd = "FzfLua",
dependencies = { "nvim-tree/nvim-web-devicons" },
-- config = get_setup("fzfLua", { config = true }), [full config]
config = function ()
require("fzf-lua").setup({
defaults = {
formatter = "path.filename_first",
path_shorten = 5,
},
})
end
}, Screen.Recording.2025-01-25.at.7.19.03.PM.movWell this other plugin is for showing that although my laptop is ancient 🥲 but it's not that slow Screen.Recording.2025-01-25.at.7.34.55.PM.mov |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
Can you pinpoint to when was that? maybe a specific commit? Once you isolate what is causing this I can work on it. As for LeaderF it doesn't spawn an externap process (fzf) so it's able to show the window faster while fzf-lua has to open a term buffer and run fzf, therefore the initial spawn will always be slower than plugins that don't spawn a term (telescope, etc). Fzf-lua speed comes into play when there are millions of lines / files in the project. |
Beta Was this translation helpful? Give feedback.
After very long time another weird thing happened. I've switched from macOS to linux to my macbook Air 2017 (As future versions will be only for arm so Open core legacy patcher(oclp) may not work anymore). And under linux fzfLua is like a beast!!! Super buttery smooth. I also had a really old laptop running linux too (Intel i3-3217U) tried cloning my dotfiles in it too. Also smooth!!! I guess the slowness was because of oclp, but other similar fuzzy finders were normal on oclp 😐 IDK. But I'm happy now 😃