weirongxu / coc-explorer

📁 Explorer for coc.nvim
MIT License
1.14k stars 45 forks source link

Filetypes icons not working #476

Closed FrenchGithubUser closed 3 years ago

FrenchGithubUser commented 3 years ago

I'm using urxvt, downloaded nerd-fonts-complete from the AUR and I am getting this result in coc-explorer 2021-09-18-154440_1920x1080_scrot Any idea on how to fix it ? (and also is it normal that in the explorer the files are underlined and not highlighted where the cursor is positioned ?)

weirongxu commented 3 years ago

I'm using urxvt, downloaded nerd-fonts-complete from the AUR and I am getting this result in coc-explorer

Please change your terminal font.

Any idea on how to fix it ? (and also is it normal that in the explorer the files are underlined and not highlighted where the cursor is positioned ?)

That this problem of your vim theme, check out :help 'cursorline'

FrenchGithubUser commented 3 years ago

Thanks for your quick answer ! However, I added this line : URxvt.font: Hack Bold Nerd Font Complete in my .Xresources file and I still have the same problem for the icons.

And for the cursor line, it only appears in the coc explorer and not when editing or going through files. I couldn't find how to change the parameter only for the explorer

FrenchGithubUser commented 3 years ago

Any idea of what I am doing wrong ?

weirongxu commented 3 years ago

Thanks for your quick answer ! However, I added this line : URxvt.font: Hack Bold Nerd Font Complete in my .Xresources file and I still have the same problem for the icons.

I have no experience with URxvt, but this is a terminal problem and I can't fix it. You should check why your terminal does not display the Nerdfont.

And for the cursor line, it only appears in the coc explorer and not when editing or going through files. I couldn't find how to change the parameter only for the explorer

You can use event hooks to change the cursorline option in the coc-explorer.

https://github.com/weirongxu/coc-explorer#example-by-vim-api-and-event-hooks

FrenchGithubUser commented 3 years ago

Thanks ! I'll figure it out

edit : I didn't reload my .Xresources so obviously the changes didn't take effect...