From e907e8d76b5181d6e8688fd008aa4f3dce7b6704 Mon Sep 17 00:00:00 2001 From: Donaldttt Date: Sat, 23 Jul 2022 15:05:58 -0400 Subject: [PATCH] . --- .vimrc | 8 +++++++- .vimrc.bundles | 12 ++++++++++-- 2 files changed, 17 insertions(+), 3 deletions(-) diff --git a/.vimrc b/.vimrc index daf7d2f..c6d87d2 100644 --- a/.vimrc +++ b/.vimrc @@ -1,9 +1,15 @@ " Modeline and Notes { " Environment { " get current neovim version + let g:vim_version = -1 if has('nvim') - let g:nvim_version = matchstr(execute('version'), 'NVIM v\zs[^\n]*') + let g:vim_type = 'nvim' + let g:vim_version = matchstr(execute('version'), 'NVIM v\zs[^\n]*') + else + let g:vim_type = 'vim' + let g:vim_version = matchstr(execute('version'), 'NVIM v\zs[^\n]*') endif + let g:vim_version = str2float(g:vim_version) " The default leader is '\', but many people prefer ',' as it's in a standard let mapleader = ',' diff --git a/.vimrc.bundles b/.vimrc.bundles index e6dcb49..56ba981 100644 --- a/.vimrc.bundles +++ b/.vimrc.bundles @@ -78,10 +78,17 @@ Plug 'NLKNguyen/papercolor-theme' " } + if g:vim_type == 'nvim' && g:vim_version > 0.5 + Plug 'xiyaowong/nvim-transparent' + endif call plug#end() " Plugin Preferences " { + " xiyaowong/nvim-transparent { + + " } + " NerdTree { if isdirectory(expand(plugin_dir . "/nerdtree")) let g:NERDShutUp=1 @@ -157,7 +164,7 @@ " has('nvim') check if it's running on nvim rather than " having neovim on your machine - if isdirectory(expand(plugin_dir . "/github-nvim-theme")) && has('nvim') && str2float(g:nvim_version) >= 0.5 + if isdirectory(expand(plugin_dir . "/github-nvim-theme")) && has('nvim') && g:vim_version >= 0.5 let g:github_function_style = "italic" "let g:github_sidebars = ["qf", "vista_kind", "terminal", "packer"] colorscheme github_dark @@ -180,7 +187,8 @@ " { " vim theme "elseif isdirectory(expand(plugin_dir . "/jellybeans.vim")) && !has('nvim') - elseif isdirectory(expand(plugin_dir . "/vim-afterglow")) + elseif isdirectory(expand(plugin_dir . "/vim-afterglow")) + let g:afterglow_inherit_background=1 colorscheme afterglow let g:airline_theme='afterglow'