diff options
author | Johannes Stoelp <johannes.stoelp@gmail.com> | 2023-08-01 23:09:32 +0200 |
---|---|---|
committer | Johannes Stoelp <johannes.stoelp@gmail.com> | 2023-08-01 23:09:32 +0200 |
commit | e0ec28517518707ae5b74d3173d9031fcbb585e6 (patch) | |
tree | 0f6a9c3dce61230970043a3afaac23c75ac5bc41 | |
parent | 889e0d6a94586e51a6d0204ae264d6004d27eb94 (diff) | |
download | dotfiles-e0ec28517518707ae5b74d3173d9031fcbb585e6.tar.gz dotfiles-e0ec28517518707ae5b74d3173d9031fcbb585e6.zip |
nvim: install plug from installer
-rwxr-xr-x | install | 3 | ||||
-rw-r--r-- | nvim.init.vim | 2 |
2 files changed, 4 insertions, 1 deletions
@@ -131,6 +131,7 @@ function vimConfigInstaller() { function nvimConfigInstaller() { local vimrc=~/.config/nvim/init.vim + mkdir -p ~/.config/nvim touch $vimrc grep $gMagicNumber $vimrc > /dev/null 2>&1 if [[ $? = 0 ]]; then @@ -138,6 +139,8 @@ function nvimConfigInstaller() { fi echo -e "\n\" $gMagicNumber - Auto generated, do not delete or modify!" >> $vimrc echo -e "source $ABS_BASE_DIR/nvim.init.vim" >> $vimrc + # install plug pkg manager + curl -fLo $HOME/.config/nvim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim return 0 } diff --git a/nvim.init.vim b/nvim.init.vim index de91b68..a264bee 100644 --- a/nvim.init.vim +++ b/nvim.init.vim @@ -30,7 +30,7 @@ call plug#begin('~/.nvim/plugged') Plug 'nvim-telescope/telescope-fzf-native.nvim', { 'do': 'make' } " Treesitter - Plug 'nvim-treesitter/nvim-treesitter', {'do': ':TSUpdate'} + Plug 'nvim-treesitter/nvim-treesitter', { 'do': ':TSUpdate' } Plug 'nvim-treesitter/nvim-treesitter-context' " Diffview |