rich-presence/cord-nvim: init

This commit is contained in:
Adam0 2026-04-27 16:12:28 +02:00
commit e04a353093
No known key found for this signature in database
GPG key ID: 0FFE5DE6328D5EC9
9 changed files with 116 additions and 1 deletions

View file

@ -0,0 +1,22 @@
{
config,
lib,
...
}: let
inherit (lib.modules) mkIf;
cfg = config.vim.presence.cord-nvim;
in {
config = mkIf cfg.enable {
vim = {
globals.cord_defer_startup = true;
lazy.plugins.cord-nvim = {
package = "cord-nvim";
setupModule = "cord";
inherit (cfg) setupOpts;
event = ["DeferredUIEnter"];
};
};
};
}

View file

@ -0,0 +1,10 @@
{lib, ...}: let
inherit (lib.options) mkEnableOption;
inherit (lib.nvim.types) mkPluginSetupOption;
in {
options.vim.presence.cord-nvim = {
enable = mkEnableOption "Discord rich presence [cord.nvim]";
setupOpts = mkPluginSetupOption "cord.nvim" {};
};
}

View file

@ -0,0 +1,6 @@
{
imports = [
./config.nix
./cord-nvim.nix
];
}

View file

@ -1,5 +1,6 @@
{
imports = [
./cord-nvim
./neocord
];
}

View file

@ -57,7 +57,7 @@
# Get plugins built from source from self.packages
# If adding a new plugin to be built from source, it must also be inherited
# here.
inherit (inputs.self.packages.${pkgs.stdenv.system}) blink-cmp avante-nvim;
inherit (inputs.self.packages.${pkgs.stdenv.system}) blink-cmp avante-nvim cord-nvim;
};
buildConfigPlugins = plugins: