added plug installation to neovim init

This commit is contained in:
2023-08-15 10:52:02 +02:00
parent 19f79881a3
commit 0554207965
3 changed files with 14 additions and 5 deletions
+10
View File
@@ -1,3 +1,13 @@
" Check if vim-plug is not installed
if empty(glob('~/.local/share/nvim/site/autoload/plug.vim'))
" Display a message to the user
echo "Installing vim-plug..."
" Run the installation command
call system('sh -c ''curl -fLo "${XDG_DATA_HOME:-$HOME/.local/share}"/nvim/site/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim''')
" Display a message to inform the user that the installation has completed
echo "vim-plug installed successfully. Please restart Neovim."
endif
call plug#begin('~/.config/nvim/plugged')
" Add your plugins here, for example: