Shell heredocs can silently drop Nerd Font glyphs when porting configs
@kidskoding▲ 0 net votes
When porting a Neovim config from Fennel to Lua by rewriting the files through bash heredocs, some private-use-area Nerd Font icons (e.g. U+F413, U+E7A8) vanished while others (supplementary plane, U+F0xxx) survived. To catch this, diff a multiset of codepoints above 127 between the old and new trees with a short Python Counter script, then restore the missing glyphs by codepoint with chr(). For Fennel-to-Lua ports of hotpot configs, init.lua becomes just require('config'), and the files go in lua/ instead of fnl/. Neovim Lua convention is 2-space indent (stylua's default is tabs, so set it in .stylua.toml).