All Projects → jbyuki → Instant.nvim

jbyuki / Instant.nvim

Licence: mit
collaborative editing in Neovim using built-in capabilities

Programming Languages

lua
6591 projects

Projects that are alternatives of or similar to Instant.nvim

Toast.vim
🍞 Toast! A colorful, medium-contrast color scheme with full Vim and Neovim support and automatic light and dark variants. Easy to read without frying your retinae.
Stars: ✭ 108 (-39.33%)
Mutual labels:  neovim, neovim-plugin
Vim Clap
👏 Modern performant fuzzy picker for Vim and NeoVim
Stars: ✭ 1,802 (+912.36%)
Mutual labels:  neovim, neovim-plugin
Nvim Treesitter Context
Show code context
Stars: ✭ 113 (-36.52%)
Mutual labels:  neovim, neovim-plugin
Sniprun
A neovim plugin to run lines/blocs of code (independently of the rest of the file), supporting multiples languages
Stars: ✭ 93 (-47.75%)
Mutual labels:  neovim, neovim-plugin
Acid.nvim
Asynchronous Clojure Interactive Development
Stars: ✭ 147 (-17.42%)
Mutual labels:  neovim, neovim-plugin
Asyncrun.vim
🚀 Run Async Shell Commands in Vim 8.0 / NeoVim and Output to the Quickfix Window !!
Stars: ✭ 1,332 (+648.31%)
Mutual labels:  neovim, neovim-plugin
Neotags.nvim
Tag highlight in neovim
Stars: ✭ 124 (-30.34%)
Mutual labels:  neovim, neovim-plugin
Crease.vim
Easy foldtext customization for [neo]vim.
Stars: ✭ 19 (-89.33%)
Mutual labels:  neovim, neovim-plugin
Neotex
latex live preview - plugin for neovim and vim 8
Stars: ✭ 170 (-4.49%)
Mutual labels:  neovim, neovim-plugin
Nvim Lsputils
Better defaults for nvim-lsp actions
Stars: ✭ 142 (-20.22%)
Mutual labels:  neovim, neovim-plugin
Todoist.nvim
A todoist extension for neovim
Stars: ✭ 84 (-52.81%)
Mutual labels:  neovim, neovim-plugin
Vim Dadbod Completion
Database autocompletion powered by https://github.com/tpope/vim-dadbod
Stars: ✭ 163 (-8.43%)
Mutual labels:  neovim, neovim-plugin
Wishlist
A public catalogue of Lua plugins Neovim users would like to see exist
Stars: ✭ 74 (-58.43%)
Mutual labels:  neovim, neovim-plugin
Neovim Fuzzy
Fuzzy file finding for neovim
Stars: ✭ 103 (-42.13%)
Mutual labels:  neovim, neovim-plugin
Nvim Hlslens
Hlsearch Lens for Neovim
Stars: ✭ 55 (-69.1%)
Mutual labels:  neovim, neovim-plugin
Nvim Bqf
Better quickfix window in Neovim, polish old quickfix window.
Stars: ✭ 120 (-32.58%)
Mutual labels:  neovim, neovim-plugin
Context.vim
Vim plugin that shows the context of the currently visible buffer contents
Stars: ✭ 688 (+286.52%)
Mutual labels:  neovim, neovim-plugin
Semshi
🌈 Semantic Highlighting for Python in Neovim
Stars: ✭ 758 (+325.84%)
Mutual labels:  neovim, neovim-plugin
Vem Tabline
A lightweight Vim/Neovim plugin to display buffers and tabs in the tabline
Stars: ✭ 129 (-27.53%)
Mutual labels:  neovim, neovim-plugin
Targets.vim
Vim plugin that provides additional text objects
Stars: ✭ 2,114 (+1087.64%)
Mutual labels:  neovim, neovim-plugin

instant.nvim

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

Untitled-Project.gif

Features

  • Powerful collaborative editing algorithm

  • UTF-8 Support

  • Single or multiple buffer sharing

  • Virtual cursors with username of other clients

  • Spectate actions of a user

  • Built-in localhost server

  • Separated undo/redo for each user

  • Persistent data on server

Requirements

  • Neovim 0.4.4 or above

Install

Install using a plugin manager such as vim-plug.

Plug 'jbyuki/instant.nvim'

Configurations

  • Set your username in init.vim:
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.

  • Start it with :InstantStartServer [host] [port]
  • When done stop it with :InstantStopServer

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.

  • Single buffer sharing: This will only share the current buffer.
  • Session sharing: This will share all opened (and newly opened) buffers with the other clients. This can be thought of directory sharing without implicit writing on the file system.

For single buffer sharing use:

  • :InstantStartSingle [host] [port] : Host is the URL or IP address. Port is 80 by default. Use this command if you're the first client to connect.
  • :InstantJoinSingle [host] [port] : Use this command if another client already initiated a single share.
  • :InstantStop : This will stop the client

For session sharing:

  • :InstantStartSession [host] [port] : If you're the first client to connect.
  • :InstantJoinSession [host] [port] : Use this command if another client already initiated a session share
  • :InstantStop

Additional useful sharing commands are:

  • :InstantStatus : Display the current connected clients as well as their locations
  • :InstantFollow [user]
  • :InstantStopFollow
  • :InstantOpenAll : Open all files in buffers in the current directory. Useful to share the whole directory in session sharing.
  • :InstantSaveAll : Save all opened buffers automatically. This will also create missing subdirectories.
  • :InstantMark : Visually mark a region
  • :InstantMarkClear

Tips and Tricks

  • If there is an issue, you can resync by stopping and reconnecting.
  • In session sharing, view all the available buffers with :ls.

Help

  • If you encounter any problem, please don't hesitate to open an Issue
  • All contributions are welcome
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].