Fixed broken transparency in dark theme

This commit is contained in:
Jef Roosens 2021-02-02 10:14:08 +01:00
parent 55babb1f8e
commit e71e7f1c48
3 changed files with 26 additions and 8 deletions

12
init/autocmds.vim Normal file
View file

@ -0,0 +1,12 @@
function! OverwriteBackground()
" We only want a transparent background if we're using the dark theme
if g:colors_name == 'flattened_dark'
highlight Normal guibg=NONE ctermbg=NONE
highlight LineNr ctermfg=NONE ctermbg=NONE
endif
endfunction
augroup ColorschemeOverwrite
autocmd!
autocmd ColorScheme * call OverwriteBackground()
augroup END

View file

@ -6,10 +6,14 @@ call plug#begin('~/.config/nvim/plugged')
" definitions easily.
" Plug 'ludovicchabant/vim-gutentags', { 'commit': '31c0ead' }
" File navigation
" Fast file navigation using fuzzy search
"
" https://github.com/ctrlpvim/ctrlp.vim
Plug 'ctrlpvim/ctrlp.vim'
" Git client within Vim
"
" https://github.com/tpope/vim-fugitive
Plug 'tpope/vim-fugitive'
" Change surrounding quotes, brackets...