nvim-ctrl
sends commands to all running neovim instances.
Examples:
# Turn on dark syntax
nvim-ctrl 'set background=dark'
# Toggle night mode based on environment variable
nvim-ctrl 'let $NIGHT_MODE="true"'
nvim-ctrl 'source ~/.dotfiles/nvim/init.vim`
- Download a binary from releases
OR
cargo install --git https://github.com/chmln/nvim-ctrl
- Open up neovim in a few places and run some commands with
nvim-ctrl
Neovim automatically sets up RPC sockets in /tmp on unix systems, unless its overridden by --listen
. nvim-ctrl
finds these sockets and sends them the appropriate commands.