Home

Awesome

instant.nvim

instant.nvim is a collaborative editing plugin for Neovim written in Lua with no dependencies.

Untitled-Project.gif

Features

Requirements

Install

Install using a plugin manager such as vim-plug.

Plug 'jbyuki/instant.nvim'

Configurations

let g:instant_username = "USERNAME"

See here for more customization options.

Usage

The collaborative editing plugin works with a server which connects together the clients. Thus, a server must be running which must be reachable by all clients.

Server (Neovim or node.js)

For a localhost or LAN network, you can simple use the built-in server included in the plugin.

The default is to serve localhost only, on port 8080. For a more advanced (remote server) overview see Deploy a server

Client (Neovim)

To start the client, the first user to connect to the server must initiates the share with a special commands with has the form InstantStart.... Subsequent joining clients, use a different command InstantJoin.... Having distinct commands to start and join a server ensures that files are not overwritten by accident on connection.

There are essentially two modes of sharing at the moment.

For single buffer sharing use:

For session sharing:

Additional useful sharing commands are:

Tips and Tricks

Help

Contributions

See here.