format-on-save.nvim
format-on-save.nvim copied to clipboard
fix: properly handle multibyte characters
Neovim apis work in terms of bytes. But initially I thought that's not the case and used nr2char & char2nr to convert chars to numbers for diffing, which work in terms of unicode codepoints IIUC.