chore(scripts): iterate through all nvim listen pipes

This commit is contained in:
Afonso Franco 2024-10-05 13:09:51 +01:00
parent b3386d4f46
commit 49d5c2d3ce
Signed by: afonso
SSH key fingerprint: SHA256:gkVPzsQQJzqi21ntQBV6pXTx4bYI53rFGI4XtvCpwd4

View file

@ -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}<CR>" || true
for addr in $XDG_RUNTIME_DIR/nvim.*; do
nvim --server $addr --remote-send ':colorscheme ${nvim_color_scheme}<CR>' || true
done
}
case $1 in