From 8236161d3b5b86a56d3b5af402ee6bebd147fa8f Mon Sep 17 00:00:00 2001 From: Austin Horstman Date: Tue, 19 May 2026 22:31:55 -0500 Subject: [PATCH] plugins/live-share: add module Closes #3650 --- plugins/by-name/live-share/default.nix | 16 ++++++++ .../plugins/by-name/live-share/default.nix | 39 +++++++++++++++++++ 2 files changed, 55 insertions(+) create mode 100644 plugins/by-name/live-share/default.nix create mode 100644 tests/test-sources/plugins/by-name/live-share/default.nix diff --git a/plugins/by-name/live-share/default.nix b/plugins/by-name/live-share/default.nix new file mode 100644 index 00000000..6bde9d5d --- /dev/null +++ b/plugins/by-name/live-share/default.nix @@ -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"; + }; +} diff --git a/tests/test-sources/plugins/by-name/live-share/default.nix b/tests/test-sources/plugins/by-name/live-share/default.nix new file mode 100644 index 00000000..a734c831 --- /dev/null +++ b/tests/test-sources/plugins/by-name/live-share/default.nix @@ -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"; + }; + }; + }; +}