mini/colors: init

This commit is contained in:
LilleAila 2025-01-17 19:23:03 +01:00
commit 86fc7a3764
No known key found for this signature in database
GPG key ID: D1ACCDCF2B9B9799
7 changed files with 59 additions and 0 deletions

View file

@ -0,0 +1,11 @@
{
config,
lib,
...
}: let
inherit (lib.options) mkEnableOption mkOption;
in {
options.vim.mini.colors = {
enable = mkEnableOption "mini.colors";
};
}

View file

@ -0,0 +1,18 @@
{
config,
lib,
...
}: let
inherit (lib.modules) mkIf;
inherit (lib.nvim.dag) entryAnywhere;
cfg = config.vim.mini.colors;
in {
vim = mkIf cfg.enable {
startPlugins = ["mini-colors"];
pluginRC.mini-colors = entryAnywhere ''
require("mini.colors").setup()
'';
};
}

View file

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

View file

@ -8,5 +8,6 @@
./bracketed
./bufremove
./clue
./colors
];
}