From fb10eb2769d7e12870811f1e22c23b58e4c581dc Mon Sep 17 00:00:00 2001 From: afonso Date: Sat, 5 Oct 2024 13:09:51 +0100 Subject: [PATCH] [scripts] iterate through all nvim listen pipes --- .local/bin/change-theme.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.local/bin/change-theme.sh b/.local/bin/change-theme.sh index 772099c..45c1ca2 100755 --- a/.local/bin/change-theme.sh +++ b/.local/bin/change-theme.sh @@ -39,7 +39,9 @@ change_common(){ tmux source-file ~/.config/tmux/tmux.conf echo "vim.cmd('colorscheme ${nvim_color_scheme}')" >> ~/.config/nvim/lua/core/theme.lua - nvim --server /tmp/nvim.pipe --remote-send ":colorscheme ${nvim_color_scheme}" || true + for addr in $XDG_RUNTIME_DIR/nvim.*; do + nvim --server $addr --remote-send ':colorscheme ${nvim_color_scheme}' || true + done } case $1 in