how to hide the margin in nvim #9101
|
These margins are so annoying, is there a way to remove them?
I have tried the following settings, but they don't work I either tried the solution in #5733 , but also doesn't work |
Answered by
rivenirvana
Oct 12, 2025
Replies: 1 comment 2 replies
|
Those aren't margins, they're excess pixels that can't take up the size of a cell. See https://sw.kovidgoyal.net/kitty/conf/#opt-kitty.placement_strategy |
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

I believe the only way to not have those black areas is to change kitty's bg color to what the tui uses as a bg color when the tui is up. You can do this via a kitty watcher that watches for an envvar set by the tui, but if you're only concerned with neovim, it's simpler to set up autocmds. 1 bound to entering nvim and 1 bound to leaving it, and each sending the appropriate escape codes kitty recognizes to change the bg color. A very simple implementation like this should suffice, add it somewhere early in your config: