From 61abd4927aa15df02651a67b324ab15e260f2841 Mon Sep 17 00:00:00 2001 From: Nachuan Tang Date: Tue, 28 Feb 2023 18:33:55 -0500 Subject: [PATCH] auto install plugins at start --- .vimrc.bundles | 6 ++++++ coc-settings.json | 3 +++ 2 files changed, 9 insertions(+) create mode 100644 coc-settings.json diff --git a/.vimrc.bundles b/.vimrc.bundles index adcfba6..83e6411 100644 --- a/.vimrc.bundles +++ b/.vimrc.bundles @@ -136,6 +136,12 @@ endif call plug#end() + + " Automatically install missing plugins on startup + autocmd VimEnter * + \ if len(filter(values(g:plugs), '!isdirectory(v:val.dir)')) + \| PlugInstall --sync | q + \| endif " } " only work for Plug.vim diff --git a/coc-settings.json b/coc-settings.json new file mode 100644 index 0000000..06a5173 --- /dev/null +++ b/coc-settings.json @@ -0,0 +1,3 @@ +{ + "diagnostic.errorSign": ">" +}