aboutsummaryrefslogtreecommitdiff
path: root/.local/share/mode/reload.d/nvim
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2024-03-09 14:16:43 +0100
committerlonkaars <loek@pipeframe.xyz>2024-03-09 14:16:43 +0100
commit3be98e5ef5247042fd219dded572910305b1a5a4 (patch)
tree43b0f170be0cae8559e582415f9575828ca4e6b3 /.local/share/mode/reload.d/nvim
parent2dc5ec7085e1c1bbc406f2089dddf8f6e1d9d206 (diff)
big restructure of `mode` scripts
Diffstat (limited to '.local/share/mode/reload.d/nvim')
-rwxr-xr-x.local/share/mode/reload.d/nvim5
1 files changed, 5 insertions, 0 deletions
diff --git a/.local/share/mode/reload.d/nvim b/.local/share/mode/reload.d/nvim
new file mode 100755
index 0000000..84ae847
--- /dev/null
+++ b/.local/share/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
+