aboutsummaryrefslogtreecommitdiff
path: root/.config/mode/reload.d/nvim
diff options
context:
space:
mode:
Diffstat (limited to '.config/mode/reload.d/nvim')
-rwxr-xr-x.config/mode/reload.d/nvim5
1 files changed, 5 insertions, 0 deletions
diff --git a/.config/mode/reload.d/nvim b/.config/mode/reload.d/nvim
new file mode 100755
index 0000000..84ae847
--- /dev/null
+++ b/.config/mode/reload.d/nvim
@@ -0,0 +1,5 @@
+#!/bin/sh
+nvr --serverlist | while read -r nvim_socket ; do
+ fork nvr --nostart --servername "$nvim_socket" -c 'source $XDG_CONFIG_HOME/nvim/mode.vim'
+done
+