mfussenegger / nvim-lint

An asynchronous linter plugin for Neovim complementary to the built-in Language Server Protocol support.
GNU General Public License v3.0
1.76k stars 191 forks source link

fix: unicode string length #612

Open kanigreg opened 4 days ago

kanigreg commented 4 days ago

CSpell parser doesn't calculate Unicode string length right.

string.len('Йоу') -- cyrillic string return 6 instead of 3

Lua 5.1 doesn't have a standard library for unicode strings, so I used a Vim function.