From 5b2d6ffc0dca2907d40379ad7a93e6dd10d6afb0 Mon Sep 17 00:00:00 2001 From: Donaldttt Date: Sat, 23 Jul 2022 19:47:26 -0400 Subject: [PATCH 1/3] fix install script --- install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 } From 13ed406f40bceb3457dd759fc36627a726b593e5 Mon Sep 17 00:00:00 2001 From: Donaldttt Date: Sat, 23 Jul 2022 19:54:14 -0400 Subject: [PATCH 2/3] fix bug --- .vimrc.bundles | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.vimrc.bundles b/.vimrc.bundles index ca37283..aaf32e8 100644 --- a/.vimrc.bundles +++ b/.vimrc.bundles @@ -85,9 +85,9 @@ Plug 'NLKNguyen/papercolor-theme' " } - if g:vim_type == 'nvim' && g:vim_version > 0.5 - Plug 'xiyaowong/nvim-transparent' - endif + " only work with nvim > 0.5 + Plug 'xiyaowong/nvim-transparent' + Plug 'EdenEast/nightfox.nvim' Plug 'catppuccin/vim', { 'as': 'catppuccin' } From 3b7136de3e13eb0329b5d751a4e65219d5954de8 Mon Sep 17 00:00:00 2001 From: Donaldttt Date: Sat, 23 Jul 2022 23:11:12 -0400 Subject: [PATCH 3/3] fix bugs --- .vimrc.bundles | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.vimrc.bundles b/.vimrc.bundles index aaf32e8..d7f67a6 100644 --- a/.vimrc.bundles +++ b/.vimrc.bundles @@ -86,7 +86,11 @@ " } " only work with nvim > 0.5 - Plug 'xiyaowong/nvim-transparent' + " 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' } @@ -297,6 +301,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