summaryrefslogtreecommitdiff
path: root/.vim/colors.vim
blob: 50ecc2cfacf0101aa476829ee56a70a079153615 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
set termguicolors
set laststatus=2

" 1. Load your existing tokyonight theme
let g:tokyonight_enable_italic = 1
let g:lightline = {'colorscheme' : 'tokyonight'}

" Try to load tokyonight; if it fails, it won't crash your vim
silent! colorscheme tokyonight

" 2. THE BLACKOUT OVERRIDE
" This removes the theme's background so it uses Ghostty's #000000
function! TransparencyOverride()
    highlight Normal     guibg=NONE ctermbg=NONE
    highlight NonText    guibg=NONE ctermbg=NONE
    highlight NormalNC   guibg=NONE ctermbg=NONE
    highlight SignColumn guibg=NONE ctermbg=NONE
    highlight EndOfBuffer guibg=NONE ctermbg=NONE
endfunction

" Apply the override immediately and whenever a colorscheme is loaded
autocmd ColorScheme * call TransparencyOverride()
call TransparencyOverride()