Create and push an initial working version of this repo before I change things on this machine Signed-off-by: Robert Morrison <robert@closedless.xyz>
24 lines
935 B
Lua
24 lines
935 B
Lua
-- WARNING: this file may need tweaking for your own setup
|
|
-- I would suggest disabling this if you find things not rendering properly.
|
|
|
|
-- Many nerd-font gyphs get "improperly" rendered in terminals.
|
|
-- To fix this I am using the setcellwidth function
|
|
-- to manually override the cell width for given character ranges.
|
|
-- In some cases this involves splitting the range many times to
|
|
-- only modify the characters that need it.
|
|
|
|
-- This issue is likely caused due to the nerd-font glyphs being placed
|
|
-- where they can fit in the unicode space, and being stuck between other
|
|
-- characters.
|
|
|
|
-- The glyph sets are accurate as of v3.0.0 of nerd-fonts
|
|
|
|
-- TODO: Test and add other nerd-font glyphs
|
|
-- format {start codepoint, end codepoint, width}
|
|
-- WARNING: RANGES CANNOT OVERLAP
|
|
vim.fn.setcellwidths {
|
|
{ 0xf0001, 0xf01fb, 2 }, -- material design
|
|
{ 0xf01fc, 0xf01fc, 1 }, -- mdi-equals
|
|
{ 0xf01fd, 0xf1af0, 2 }, -- material design
|
|
}
|