diff options
| l--------- | .config/nvim/autoload | 1 | ||||
| l--------- | .config/nvim/init.vim | 1 | ||||
| l--------- | .config/nvim/my | 1 | ||||
| l--------- | .config/nvim/plugged | 1 | ||||
| -rw-r--r-- | .gitignore | 6 | ||||
| -rw-r--r-- | .vimrc | 12 | ||||
| -rw-r--r-- | INSTALL.txt | 1 | ||||
| -rwxr-xr-x | setup.sh | 1 |
8 files changed, 20 insertions, 4 deletions
diff --git a/.config/nvim/autoload b/.config/nvim/autoload new file mode 120000 index 0000000..2d31eb7 --- /dev/null +++ b/.config/nvim/autoload @@ -0,0 +1 @@ +../vim/autoload
\ No newline at end of file diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim new file mode 120000 index 0000000..71b3819 --- /dev/null +++ b/.config/nvim/init.vim @@ -0,0 +1 @@ +../../.vimrc
\ No newline at end of file diff --git a/.config/nvim/my b/.config/nvim/my new file mode 120000 index 0000000..dd11040 --- /dev/null +++ b/.config/nvim/my @@ -0,0 +1 @@ +../vim/my
\ No newline at end of file diff --git a/.config/nvim/plugged b/.config/nvim/plugged new file mode 120000 index 0000000..13b61af --- /dev/null +++ b/.config/nvim/plugged @@ -0,0 +1 @@ +../vim/plugged
\ No newline at end of file @@ -1,4 +1,6 @@ -/.config/vim/* -!/.config/vim/my/ +/.config/vim/autoload/plug.vim +/.config/vim/plugged/ +/.config/nvim/autoload/plug.vim +/.config/nvim/plugged/ /.config/emacs vim-startup.log @@ -43,8 +43,16 @@ else let g:MY_ENV.cache_home = $XDG_CONFIG_HOME endif -let g:MY_ENV.config_dir = g:MY_ENV.config_home . '/vim' -let g:MY_ENV.cache_dir = g:MY_ENV.cache_home . '/vim' +if has('nvim') + let g:MY_ENV.config_dir = g:MY_ENV.config_home . '/nvim' +else + let g:MY_ENV.config_dir = g:MY_ENV.config_home . '/vim' +endif +if has('nvim') + let g:MY_ENV.cache_dir = g:MY_ENV.cache_home . '/nvim' +else + let g:MY_ENV.cache_dir = g:MY_ENV.cache_home . '/vim' +endif let g:MY_ENV.my_dir = g:MY_ENV.config_dir . '/my' let g:MY_ENV.plug_dir = g:MY_ENV.config_dir . '/plugged' diff --git a/INSTALL.txt b/INSTALL.txt index 5f083ec..68034b1 100644 --- a/INSTALL.txt +++ b/INSTALL.txt @@ -11,6 +11,7 @@ $ brew install \ gcc \ git \ jq \ + neovim \ pandoc \ python \ ripgrep \ @@ -22,6 +22,7 @@ for name in \ bat \ emacs \ git \ + nvim \ vim \ ; \ do |
