plugins/live-share: add module

Closes #3650
This commit is contained in:
Austin Horstman
2026-05-21 21:00:02 +00:00
parent 0ae783996f
commit 8236161d3b
2 changed files with 55 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
{ lib, ... }:
lib.nixvim.plugins.mkNeovimPlugin {
name = "live-share";
package = "live-share-nvim";
description = "Collaborative live coding in Neovim.";
maintainers = [ lib.maintainers.khaneliman ];
settingsExample = {
port = 443;
username = "pairing-session";
workspace_root = "/srv/shared-project";
transport = "punch";
stun = "stun.cloudflare.com:3478";
};
}
@@ -0,0 +1,39 @@
{ lib }:
{
empty = {
plugins.live-share.enable = true;
};
defaults = {
plugins.live-share = {
enable = true;
settings = {
port_internal = 9876;
port = 80;
max_attempts = 40;
service = "nokey@localhost.run";
service_url = lib.nixvim.mkRaw "nil";
ip_local = "127.0.0.1";
username = lib.nixvim.mkRaw "nil";
workspace_root = lib.nixvim.mkRaw "nil";
debug = false;
openssl_lib = lib.nixvim.mkRaw "nil";
transport = "ws";
stun = "stun.l.google.com:19302";
};
};
};
example = {
plugins.live-share = {
enable = true;
settings = {
port = 443;
username = "pairing-session";
workspace_root = "/srv/shared-project";
transport = "punch";
stun = "stun.cloudflare.com:3478";
};
};
};
}