kitty terminal size issues
Had weird issues with kitty terminal output being wrong, lines in vim/nvim being in wrong places, usually because it thought the terminal was a different size than it really was (blamed it on nvim initally, but the problem happened in other complex CLI programs too, notably
$TERMINFO wasn’t set, and the terminfo file was nowhere to be found. The package
kitty-terminfo was installed though.
In any case, downloaded the terminfo file from the repo and set the env variable manually in zshrc, now it works: