Skip to content

Control neovim instances using the command line.

Notifications You must be signed in to change notification settings

chmln/nvim-ctrl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nvim-ctrl

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`

Install

  1. Download a binary from releases OR cargo install --git https://github.com/chmln/nvim-ctrl
  2. Open up neovim in a few places and run some commands with nvim-ctrl

How It Works

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.

About

Control neovim instances using the command line.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages