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

use same codepoints as nerd fonts #13

Open
p00f opened this issue May 20, 2021 · 4 comments
Open

use same codepoints as nerd fonts #13

p00f opened this issue May 20, 2021 · 4 comments

Comments

@p00f
Copy link

p00f commented May 20, 2021

this will help when the icons are not configurable for some programs like exa

@p00f p00f changed the title use same codepoints as nered fonts use same codepoints as nerd fonts May 20, 2021
@p00f
Copy link
Author

p00f commented May 20, 2021

image

@hoov
Copy link

hoov commented May 22, 2021

It'd be nice if something could be done here, but I'm not sure that using the same code points as Nerd Fonts is the right thing. In my use case, I already have patched fonts via Nerd Fonts. Because the code point ranges overlap, I can't use nonicons. The range used by nonicons (U+f101-U+f208) overlaps with Nerd Fonts. Specifically, it overlaps with the range for Font Awesome (U+f000-U+f20e).

In fact, Nerd Fonts is already relocating conflicting code points.

Because of the conflicting ranges, I either have to not use nonicons, or change my Kitty configuration to choose the nonicons over Nerd Fonts for the nonicons code points:

# Powerline Extras
symbol_map U+E0A0-U+E0A2,U+E0B0-U+E0D4 FiraCode NF
# Devicons
symbol_map U+E700-U+E7C5 FiraCode NF
# Font Awesome, minus nonicons
symbol_map U+F004-U+F100,U+F209-U+F2E0 FiraCode NF
# Nonicons
symbol_map U+F101-U+F208 nonicons
# Font Awesome Extensions
symbol_map U+E200-U+E2A9 FiraCode NF
# Linux symbols
symbol_map U+F300-U+F313 FiraCode NF
# Octicons
symbol_map U+F400-U+F67C FiraCode NF
# Seti UI + Extras
symbol_map U+E5FA-U+E62B FiraCode NF

It looks like the code points for nonicons are configured in .fantasticonrc.js, but I'm not sure what the appetite is for changing these (and yamatsum/nvim-nonicons).

@rorj
Copy link

rorj commented May 26, 2021

It looks like the code points for nonicons are configured in .fantasticonrc.js, but I'm not sure what the appetite is for changing these (and yamatsum/nvim-nonicons).

I just relocated all glyphs to empty nerdfont U+E3E8-U+E506 range by editing .fantasticonrc.js and nonicon.json + yarn update. I don't use yamatsum/nvim-nonicons because of that, just copied mapping.lua with changed codes and manually override it in kyazdani42/nvim-web-devicons.

Works well for me.

@kabouzeid
Copy link

@ya2s any chance that we can shift the code points to an empty range such that it doesn't clash with nerdfont?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants