opacity in kitty/neovim
It’s not enough to enable opacity in kitty, the background has to be set to none in vim as well.
enable opacity in kitty
I could have put the following into kitty.conf, but I put it in the current-theme file which will probably be wiped out the next time I swap themes:
dynamic_background_opacity yes background_opacity 0.5
set background to none
I was watching 0 to LSP by ThePrimeagen and he mentioned the following to enable transparent backgrounds:
vim.api.nvim_set_hl(0, "Normal", { bg = "none" })
vim.api.nvim_set_hl(0, "NormalFloat", { bg = "none" })
This is Lua code and needs to go somewhere like ~/.config/nvim/init.lua.
Tags: index, nvim, cli
Tags
Navigation
created: 2025-04-15
(re)generated: 2025-11-27