-
Notifications
You must be signed in to change notification settings - Fork 178
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
Devicons broken after last update #260
Comments
It's most likely related to the multiprocess performance enhancement, let's do two things: First, disable -- it's only enabled for grep/files
-- add 'multiprocess=false' under both
require'fzf-lua'.setup {
files = {
multiprocess = false,
},
grep = {
multiprocess = false,
},
} It would be much appreciated if we can debug this further and see why this fails. If you set -- it's only enabled for grep/files
-- add 'multiprocess=false' under both
require'fzf-lua'.setup {
files = {
multiprocess = true,
debug = true,
},
grep = {
multiprocess = true,
debug = true,
},
} Note that you don't have to do this via the :lua require'fzf-lua'.files({ debug=true,multiprocess=true })
'nvim' -n --headless --clean --cmd 'lua loadfile([[/home/bhagwan/.local/share/nvim/site/pack/packer/opt/fzf-lua/lua/fzf-lua/libuv.lua]])().spawn_stdio({debug=true,cmd=[[fd --color=never --type f --hidden --follow --exclude .git]],git_icons=false,file_icons=true,color_icons=true},[[_G._devicons_path='\''/home/bhagwan/.local/share/nvim/site/pack/packer/opt/nvim-web-devicons/lua/nvim-web-devicons.lua'\''; _G._fzf_lua_server='\''/tmp/nvimEGl93J/1'\''; return require("make_entry").file]],[[return require("make_entry").preprocess]])' You can then take what's specified in :lua print(loadfile("/home/bhagwan/.local/share/nvim/site/pack/packer/opt/nvim-web-devicons/lua/nvim-web-devicons.
lua"))
-- If successfull should return a function:
function: 0x4050de18
-- or an error message:
:lua print(loadfile("/inaccessible/folder"))
nil cannot open /inaccessible/folder: No such file or directory |
Hi! Correct, it works without multiprocessing enabled. It seems
vi is an alias to nivm. |
We found the issue. that was my second suspicion, the plug-in couldn’t detect devicons in the runtime, perhaps because you’re using vim plug and I use packer they appear differently. Can you post the result of this command: :lua _G.dump(vim.api.nvim_list_runtime_paths()) |
Actually forget it I have an idea how to extract the path better, will have a solution in 15 mins :) |
Took a bit longer than I thought but my initial idea was close, should be working now :-) Lmk? |
Fixed. Thanks! |
If you get a chance and have a large code base try the new multiprocess option on it? performance should be stellar, feel free to report back in #248 :-) |
Yes I have it enabled now :)
… Op 15 dec. 2021 om 22:14 heeft ibhagwan ***@***.***> het volgende geschreven:
If you get a chance and have a large code base try the new multiprocess option on it? performance should be stellar, feel free to report back in #248 :-)
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
|
Hi, thank you for writing and releasing this plugin!
I have a small issue since the last update, all the devicons show the default (document) icon instead of filetype specific icon. This is since the last fzf-lua update you pushed. They work fine in NvimTree and bufferline.
The text was updated successfully, but these errors were encountered: