Description
Background
Nerd Fonts plans to introduce a breaking change in v3.0.0:
Next Release Outlook
The
v3.0.0
release will bring two bigger changes:Material Design Icons
The Material Design Icons have to move codepoints. Historically we patch them in between
F500
-FD46
; but part of that range is needed for Chinese and other glyphs. With #773 and Plan 5+ of #365 their new home will be afterF0001
. And they grow considerably.The
v2.3.x
release has both, the 'old' and the 'new' codepoints to enable you an easier transision. Please change already now your prompts and other uses to the new codepoints. Releasev3.0.0
will finally drop the old codepoints (F500
-FD46
).Naming
Naming will also change. The name parts will move to places where they are customarily expected (e.g. weight and style comes last). This will fix some more problems. Probably we will drop the
Complete
monicker, as ... everyone uses the complete versions, it just takes precious space in the names.
The details are not fixed yet, follow #1074 to keep up to date.
Hardcoding glyphs are very fragile to those changes. Moreover, if a user choose to use custom codepoint ranges (due to conflicts, etc.), it's a hassle to manually replace all icons in every plugin.
Solution
Fortunately, Nerd Fonts do have methods for getting glyphs via name, one via CSS class names, one being work in progress.
I suggest we could made the glyph table into a single .lua file and reference that and additionally, sync upstream with CI.