Skip to content
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

Some icons are only partially rendered #200

Closed
shans10 opened this issue Jun 2, 2020 · 6 comments
Closed

Some icons are only partially rendered #200

shans10 opened this issue Jun 2, 2020 · 6 comments
Labels
bug Something isn't working question Further information is requested

Comments

@shans10
Copy link

shans10 commented Jun 2, 2020

Description of issue

I am using neovim v0.4.3-3 on Arch Linux.

With both vim devicons and Nerd Fonts installed some icons are not rendered properly specially the ones which are wider probably due to less character space assigned for icons. I only observed this issue with icons for C programs and header files for now.

I have tried both explorer.icon.enableVimDevicons": true and explorer.icon.enableNerdfont": true in coc-settings.json and in both cases this issue was observed.

Here's a screenshot of the issue:-

Screenshot_2020-06-02-46_245x333

This is the explorer section of my coc config:-

  "explorer.quitOnOpen": true,
  "explorer.icon.enableNerdfont": true,
  "explorer.previewAction.onHover": false,
  "explorer.icon.enableVimDevicons": false,
  "explorer.keyMappings": {
    "<cr>": ["expandable?", "expand", "open"],
    "v": "open:vsplit",
    "cd": "cd",
    "gp": "gotoParent",
    "gP": "preview:labeling"
  }
@issue-label-bot
Copy link

Issue-Label Bot is automatically applying the label bug to this issue, with a confidence of 0.91. Please mark this comment with 👍 or 👎 to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

@issue-label-bot issue-label-bot bot added the bug Something isn't working label Jun 2, 2020
@weirongxu
Copy link
Owner

Should be the problem of your font or terminal

@weirongxu weirongxu added the question Further information is requested label Jun 2, 2020
@shans10
Copy link
Author

shans10 commented Jun 3, 2020

Thank you changing the font size fixed the issue!

@andys8
Copy link

andys8 commented Sep 14, 2020

I think this has to to do with "full width" / "double width" fonts and some terminals (e.g. st). Because it's working with nerd tree, there might be a way to improve this.

Nerd Tree

image

There are also options in that regard:
https://github.com/ryanoasis/vim-devicons/blob/695a918711630cd844988392af467d4e46de3de2/doc/webdevicons.txt#L603-L605

coc-explorer

with Nerd Font

image

with Dev Icons

image

@weirongxu
Copy link
Owner

weirongxu commented Sep 15, 2020

@andys8 This question is related to :highlight. When guifg takes effect, will cause this. If you are using nvim, you can use set notermguicolors to disable guibg

ryanoasis/vim-devicons#133
tiagofumo/vim-nerdtree-syntax-highlight#8

@jsycdut
Copy link

jsycdut commented Nov 4, 2020

guys, I got the same problem, fixed by using the font downloaded in https://github.com/ryanoasis/nerd-fonts/releases/tag/v2.1.0

by the way, I'm using arch + dwm + st + neovim, maybe the problem is platform irrelevant and can be fixed by using the right font

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working question Further information is requested
Projects
None yet
Development

No branches or pull requests

4 participants