From fd27e828f03f4b30dc828b79e0942b2e45faec8f Mon Sep 17 00:00:00 2001 From: V Date: Sat, 3 Dec 2022 21:35:20 +0400 Subject: [PATCH] Update .config/nvim/init.vim --- dot_config/nvim/init.vim | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/dot_config/nvim/init.vim b/dot_config/nvim/init.vim index 4913df9..cb1a321 100644 --- a/dot_config/nvim/init.vim +++ b/dot_config/nvim/init.vim @@ -1,3 +1,10 @@ set keymap=russian-jcukenwin set iminsert=0 set imsearch=-1 + +let data_dir = has('nvim') ? stdpath('data') . '/site' : '~/.vim' +if empty(glob(data_dir . '/autoload/plug.vim')) + silent execute '!curl -fLo '.data_dir.'/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim' + autocmd VimEnter * PlugInstall --sync | source $MYVIMRC +endif +