aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2021-11-19 22:59:13 +0900
committernsfisis <nsfisis@gmail.com>2021-11-19 23:10:47 +0900
commitb2fb11e1bf06f9d1c33b9a158a7a418602c0bddd (patch)
tree68cfb384033a140954ab9467c2db43a7424f6d26
parent5e4213ac2beda9bf15713e3c52988a100bc39386 (diff)
downloaddotfiles-b2fb11e1bf06f9d1c33b9a158a7a418602c0bddd.tar.gz
dotfiles-b2fb11e1bf06f9d1c33b9a158a7a418602c0bddd.tar.zst
dotfiles-b2fb11e1bf06f9d1c33b9a158a7a418602c0bddd.zip
neovim: add neovim (a.k.a., nvim)
l---------.config/nvim/autoload1
l---------.config/nvim/init.vim1
l---------.config/nvim/my1
l---------.config/nvim/plugged1
-rw-r--r--.gitignore6
-rw-r--r--.vimrc12
-rw-r--r--INSTALL.txt1
-rwxr-xr-xsetup.sh1
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
diff --git a/.gitignore b/.gitignore
index 7702980..ef83f6f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -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
diff --git a/.vimrc b/.vimrc
index 1a7fa4e..ea0d437 100644
--- a/.vimrc
+++ b/.vimrc
@@ -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 \
diff --git a/setup.sh b/setup.sh
index 28e6ae1..3244e83 100755
--- a/setup.sh
+++ b/setup.sh
@@ -22,6 +22,7 @@ for name in \
bat \
emacs \
git \
+ nvim \
vim \
; \
do