mirror of
https://github.com/NotAShelf/nvf.git
synced 2026-05-19 13:30:17 +00:00
rich-presence/cord-nvim: init
This commit is contained in:
parent
5b4f9c6320
commit
e04a353093
9 changed files with 116 additions and 1 deletions
22
modules/plugins/rich-presence/cord-nvim/config.nix
Normal file
22
modules/plugins/rich-presence/cord-nvim/config.nix
Normal 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"];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
10
modules/plugins/rich-presence/cord-nvim/cord-nvim.nix
Normal file
10
modules/plugins/rich-presence/cord-nvim/cord-nvim.nix
Normal 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" {};
|
||||
};
|
||||
}
|
||||
6
modules/plugins/rich-presence/cord-nvim/default.nix
Normal file
6
modules/plugins/rich-presence/cord-nvim/default.nix
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
imports = [
|
||||
./config.nix
|
||||
./cord-nvim.nix
|
||||
];
|
||||
}
|
||||
|
|
@ -1,5 +1,6 @@
|
|||
{
|
||||
imports = [
|
||||
./cord-nvim
|
||||
./neocord
|
||||
];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue