jxm35 / livecode.nvim

Live collaborative coding in Neovim, written 100% in lua.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

LiveCode nvim plugin

  • Live collaborative coding in Neovim, written 100% in lua.

Preview

here

Features

  • Live text editing, with all your favourite vim features
  • Built in local host and local network server
  • Fast, Reliable Operational Transaction algorithm keeping documents in sync
  • Support for all motions, lsp's and other plugins

Install

The plugin must be initialised with the following:

require("livecode").setup()

For example:

	use({
		"jxm35/livecode.nvim",
		config = function()
			require("livecode").setup()
		end,
	})
Plug 'jxm35/livecode.nvim'

" Somewhere after plug#end()
lua require('livecode').setup()

Configure

The plugin must be initialised with the following:

require("livecode").setup()

To set a username, so people know when you join or leave:

require("livecode").setup({username = "dummy_username"})

Commands

  • :LCStartSession [port] - Create a session on the specified port available on your local wifi network, and share the current buffer.
  • :LCJoin [host] [port] - Join a server on the specified host and port.
  • :LCStop - Stop or leave the server.
  • :LCShareBuffer - Set the current buffer to be the buffer shared in the session.

Help

  • Livecode.nvim provides help docs which can be accessed by running :help livecode-nvim
  • To join a session on another device on your wifi network get that devices ip address on the network.
  • This can be found on mac/linux by running the command ipconfig getifaddr en0 or on windows by running the command ipconfig /all.
  • The ip address should take the form 192.168.*.*.
  • visit www.whatismybrowser.com/detect/what-is-my-local-ip-address for more details.

Credits

About

Live collaborative coding in Neovim, written 100% in lua.


Languages

Language:Lua 99.2%Language:Makefile 0.7%Language:Vim Script 0.1%