Fixed broken transparency in dark theme
parent
55babb1f8e
commit
e71e7f1c48
16
init.vim
16
init.vim
|
@ -8,13 +8,15 @@ let g:mapleader = ' '
|
||||||
" I use tab as my local leader
|
" I use tab as my local leader
|
||||||
let g:maplocalleader = "\<tab>"
|
let g:maplocalleader = "\<tab>"
|
||||||
|
|
||||||
" This sources all the files inside the init directory
|
" Here, I source the various config files. I explicitely source them one by one
|
||||||
" The directory must be in your runtimepath; my init directory
|
" to ensure their order is always the same (the autocmds are needed later, e.g.
|
||||||
" is inside my ~/.config/nvim directory, this one is always in
|
" when the colorscheme is sourced)
|
||||||
" runtimepath
|
runtime init/autocmds.vim
|
||||||
" Without the !, runtime only sources the first file in the list,
|
runtime init/keys.vim
|
||||||
" instead of all
|
runtime init/netrw.vim
|
||||||
runtime! init/*.vim
|
runtime init/settings.vim
|
||||||
|
|
||||||
|
" The configs for the various plugins don't have a particular order to them
|
||||||
runtime! init/plugins/*.vim
|
runtime! init/plugins/*.vim
|
||||||
|
|
||||||
" This sources a .vim/local.vim file in the current directory, if it exists.
|
" This sources a .vim/local.vim file in the current directory, if it exists.
|
||||||
|
|
|
@ -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
|
|
@ -6,10 +6,14 @@ call plug#begin('~/.config/nvim/plugged')
|
||||||
" definitions easily.
|
" definitions easily.
|
||||||
" Plug 'ludovicchabant/vim-gutentags', { 'commit': '31c0ead' }
|
" Plug 'ludovicchabant/vim-gutentags', { 'commit': '31c0ead' }
|
||||||
|
|
||||||
" File navigation
|
" Fast file navigation using fuzzy search
|
||||||
|
"
|
||||||
|
" https://github.com/ctrlpvim/ctrlp.vim
|
||||||
Plug 'ctrlpvim/ctrlp.vim'
|
Plug 'ctrlpvim/ctrlp.vim'
|
||||||
|
|
||||||
" Git client within Vim
|
" Git client within Vim
|
||||||
|
"
|
||||||
|
" https://github.com/tpope/vim-fugitive
|
||||||
Plug 'tpope/vim-fugitive'
|
Plug 'tpope/vim-fugitive'
|
||||||
|
|
||||||
" Change surrounding quotes, brackets...
|
" Change surrounding quotes, brackets...
|
||||||
|
|
Reference in New Issue