summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-10-31 23:31:50 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2020-10-31 23:31:50 +0100
commit00ad7ed541a8a6ef1fad1debdc1a0f7211624862 (patch)
treeb76a3111d070f1d18a41ebd968084092ba296f7f
parentFunctionnal changes (diff)
downloaddotfiles-bsd-00ad7ed541a8a6ef1fad1debdc1a0f7211624862.tar.gz
dotfiles-bsd-00ad7ed541a8a6ef1fad1debdc1a0f7211624862.tar.bz2
dotfiles-bsd-00ad7ed541a8a6ef1fad1debdc1a0f7211624862.tar.xz
dotfiles-bsd-00ad7ed541a8a6ef1fad1debdc1a0f7211624862.tar.zst
dotfiles-bsd-00ad7ed541a8a6ef1fad1debdc1a0f7211624862.zip
Better nvim direcotries
Diffstat (limited to '')
-rw-r--r--.config/nvim/init.vim6
-rw-r--r--.config/nvim/plug.vim2
-rw-r--r--.config/vim/vimrc6
3 files changed, 7 insertions, 7 deletions
diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim
index a9f2d7f..cab9636 100644
--- a/.config/nvim/init.vim
+++ b/.config/nvim/init.vim
@@ -8,6 +8,12 @@
set runtimepath^=/home/jozan/.config/nvim runtimepath+=/home/jozan/.config/nvim/after
let &packpath = &runtimepath
+if ! filereadable(system('echo -n "$XDG_DATA_HOME/nvim/autoload/plug.vim"'))
+ echo "Downloading junegunn/vim-plug to manage plugins..."
+ silent !mkdir -p $XDG_DATA_HOME/nvim/autoload/
+ silent !curl "https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim" > $XDG_DATA_HOME/nvim/autoload/plug.vim
+ autocmd VimEnter * PlugInstall
+endif
source /home/jozan/.config/nvim/plug.vim
source /home/jozan/.config/nvim/settings.vim
source /home/jozan/.config/nvim/bindings.vim
diff --git a/.config/nvim/plug.vim b/.config/nvim/plug.vim
index db435c5..694fa48 100644
--- a/.config/nvim/plug.vim
+++ b/.config/nvim/plug.vim
@@ -1,4 +1,4 @@
-call plug#begin('~/.vim/plugged')
+call plug#begin(system('echo -n "$XDG_DATA_HOME/nvim/plugged"'))
Plug 'brglng/vim-sidebar-manager'
Plug 'dag/vim-fish'
Plug 'honza/vim-snippets'
diff --git a/.config/vim/vimrc b/.config/vim/vimrc
deleted file mode 100644
index 445d015..0000000
--- a/.config/vim/vimrc
+++ /dev/null
@@ -1,6 +0,0 @@
-set undodir=$XDG_DATA_HOME/vim/undo
-set directory=$XDG_DATA_HOME/vim/swap
-set backupdir=$XDG_DATA_HOME/vim/backup
-set viewdir=$XDG_DATA_HOME/vim/view
-set viminfo+='1000,n$XDG_DATA_HOME/vim/viminfo
-set runtimepath=$XDG_CONFIG_HOME/vim,$VIMRUNTIME,$XDG_CONFIG_HOME/vim/after