-
Notifications
You must be signed in to change notification settings - Fork 178
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Question. Why there is no support for file icons in live_grep, live_grep native? #168
Comments
This is not a bug, the issue is that when using the But now that you mention it, since then things have changed and the |
Warning: this may cause a performance degradation so you have to manually enable this by setting `grep.experimental = true` or directly via `:lua require'fzf-lua'.live_grep({ experimental = true })`
Worked hard on adding this properly, tried to improve performance as much as I could but there's still a non-negligible difference when running with or without this feature, this is due to the fact that I can no longer simply passthrough the data from It's not very noticeable in small projects but when running on my home directory with millions of files you can clearly feel the difference so I decided to disable it by default. To enable it, you have to either enable require'fzf-lua'.setup {
grep = {
experimental = true,
}
} Or direcltly with each call: :lua require'fzf-lua'.live_grep({ experimental = true }) I've enabled it for myself by default and unless I'm running nvim at Let me know if this works well for you? |
Wow. That was really quick. I tried it on a project with 50 thousand files and it just hangs after first input. On a small project with one thousand files it works just good enough. |
Yes, it was hanging for me too but then after a couple of seconds it “releases” somehow, I still haven’t given up on this but for now it does seem to work fine on small-medium projects which are the majority I would assume. |
Sorry for annoyance. But I notice now that custom script ( I modified this script https://github.com/fanliver/vimrg for my needs) for rg command stops working. The last commit where it works is 510aca8 |
Probably because I restored the original Now if you can post your modified script here I'll make sure it works in both |
Yes, it works with a live_grep_native. I just customize go script from https://github.com/fanliver/vimrg . You can do |
Yes, I can confirm that too now. It doesn't work only if setup function has this line |
Just tried with |
In any event I just looked at the code of |
Yeah that's kind of a thing. I replace for myself this separator > to / cause if you want to search some html or jsx/tsx it doesn't conflict that much. |
Closing this issue, will update in #167 as it makes more sense there. |
There is no file icons in live_grep, live_grep_native providers. Is this a deliberate choice or some sort of a bug?
The text was updated successfully, but these errors were encountered: