tamago324 / lir.nvim

Neovim file explorer

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Overrides nvim-nonicons

p00f opened this issue · comments

Hello, I use nvim-nonicons
When I set devicons_enable = true in lir.setup({}) everything (expressline, telescope) uses the default web-devicons instead of nonicons

Thank you for reporting.
I'll ask the nvim-nonicons as well.

I tried adding pcall(vim.fn, "PackerLoad nvim-nonicons") before calling lir.setup{} too, didn't work

Sorry. I do not use packer, so I do not know how it behaves.

Sorry if I'm wrong, but isn't it pcall(vim.cmd, "PackerLoad nvim-nonicons"), not pcall(vim.fn, "PackerLoad nvim-nonicons")?

Ahhh
Edit: still doesn't work

I wonder why...

Could you please try the use-set_icon branch in the tamago324/nvim-nonicons repository?

All the other icons are correct, but the generic file icon (when a file has no filetype) is still the one from nvim-web-devicons.

Thanks!

I modified it to override the default icon as well (tamago324/nvim-nonicons@a7cfa8d).
I'm sorry to keep repeating this, but could you please check?

You have to pass arguments to set_default_icon normally, not as a table

devicons.set_default_icon(
    get("file"),
    "#6d8086"
    --name = "Default",
)

Otherwise, yes this is fixed. Thanks again!

I'm sorry. I just realized it!
Thank you for confirming!

I think this can be closed?