aboutsummaryrefslogtreecommitdiff
path: root/home/dot_local/share/mode/reload.d/executable_nvim
diff options
context:
space:
mode:
Diffstat (limited to 'home/dot_local/share/mode/reload.d/executable_nvim')
-rw-r--r--home/dot_local/share/mode/reload.d/executable_nvim6
1 files changed, 6 insertions, 0 deletions
diff --git a/home/dot_local/share/mode/reload.d/executable_nvim b/home/dot_local/share/mode/reload.d/executable_nvim
new file mode 100644
index 0000000..cfabcc7
--- /dev/null
+++ b/home/dot_local/share/mode/reload.d/executable_nvim
@@ -0,0 +1,6 @@
+#!/bin/sh
+silent_fail_if_no_commmand nvr
+nvr --serverlist | while read -r nvim_socket ; do
+ fork nvr --nostart --servername "$nvim_socket" -c 'source $XDG_CONFIG_HOME/nvim/mode.vim'
+done
+