-
-
Notifications
You must be signed in to change notification settings - Fork 136
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(nvcheatsheet): fix unicode highlighting and spacing of nvcheatshe…
…et (#86) * fix(nvcheatsheet): fix unicode highlighting and spacing of nvcheatsheet As the nvim_buf_add_highlight and other functions use byte indexing instead of character indexing, I have fixed the whitespace length to not include the extra bytes of unicode and also for highlighting I had to get the correct byte index for both text and space lines of cheatsheet using builtin functions. Additional testing is required to see all cases are handled. I have checked for emojis and glyphs working as of now. fixes #74 * fix(nvcheatsheet): handle title highlights as well For Now this will handle spacing and highlights of title and space below as well. But emoji in title is bit tricky to solve for now emojis or glyphs in title should not be allowed. * fix(nvcheatsheet): fix heading nerd font as well I have fixed nerd font icon for heading title as well. I have tried to include emojis but yet they are causing the space highlighting to offset right side. So emoji support yet.
- Loading branch information
1 parent
1b6ac5a
commit 8d02f4e
Showing
1 changed file
with
47 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters