Skip to content
Discussion options

You must be logged in to vote

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:

local kitty_sync_group = vim.api.nvim_create_augroup('KittyColorSync', { clear = true })

vim.api.nvim_create_autocmd({ 'VimLeavePre', 'VimSuspend' }, {
  group = kitty_syn…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@cubewhy
Comment options

@rivenirvana
Comment options

Answer selected by cubewhy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants