mirror of
https://github.com/NotAShelf/nvf.git
synced 2026-05-20 13:59:22 +00:00
Merge e04a353093 into 3997bd4db0
This commit is contained in:
commit
e39f6a9727
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
|
||||
];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue