Add wide/multiple char string and nerd font support for chunk #139
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR should fix
chars
option."%s"
matching non-blank characters and not matching actually blank characters.vim.api.nvim_strwidth()
reporting incorrect string widths.resolves #134
Demo
main
2024-09-29.19.52.13.mp4
This PR
2024-09-29.19.55.16.mp4
Real world performance
Performance is better for small to medium files thanks to reduced calls to slow APIs, but worse for large files due to strict checking.
Performance on average
main
lua/hlchunk/mods/base_mod/init.lua
(199 lines)0.620 ms
0.522 ms
src/nvim/buffer.c
(4254 lines)1.054 ms
1.265 ms