diff --git a/.vimrc.bundles b/.vimrc.bundles index e3de258..7b2420e 100644 --- a/.vimrc.bundles +++ b/.vimrc.bundles @@ -65,9 +65,13 @@ Plug 'NLKNguyen/papercolor-theme' " } + " only work with nvim > 0.5 + " For other versions, just loading the plugin may + " cause error if g:vim_type == 'nvim' && g:vim_version > 0.5 Plug 'xiyaowong/nvim-transparent' endif + Plug 'EdenEast/nightfox.nvim' Plug 'catppuccin/vim', { 'as': 'catppuccin' } @@ -283,6 +287,7 @@ " { " vim theme elseif isdirectory(expand(plugin_dir . "/papercolor-theme")) + " improve coc color in this theme let g:light_theme = 'PaperColor' let g:dark_theme = 'PaperColor' endif diff --git a/install.sh b/install.sh index eb79799..9527356 100755 --- a/install.sh +++ b/install.sh @@ -18,7 +18,7 @@ success() { msg "\33[32m[✔]\33[0m ${1}${2}" } -function fatal_error() { +fatal_error() { msg "\33[31m[✘]\33[0m ${1}${2}" exit 1 }