mini/colors: init

This commit is contained in:
LilleAila 2025-01-17 19:23:03 +01:00
parent 3d47d3f8c3
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

@ -62,6 +62,7 @@
- `mini.bracketed` - `mini.bracketed`
- `mini.bufremove` - `mini.bufremove`
- `mini.clue` - `mini.clue`
- `mini.colors`
[kaktu5](https://github.com/kaktu5): [kaktu5](https://github.com/kaktu5):

View file

@ -1064,6 +1064,22 @@
"type": "github" "type": "github"
} }
}, },
"plugin-mini-colors": {
"flake": false,
"locked": {
"lastModified": 1730726192,
"narHash": "sha256-B2JahCUhKpYwOJrl+BhSp3UQFiyyMGJAYKGK+uMv3fk=",
"owner": "echasnovski",
"repo": "mini.colors",
"rev": "d64b1c0f520579d905f97208eca85329e664ab88",
"type": "github"
},
"original": {
"owner": "echasnovski",
"repo": "mini.colors",
"type": "github"
}
},
"plugin-minimap-vim": { "plugin-minimap-vim": {
"flake": false, "flake": false,
"locked": { "locked": {
@ -2268,6 +2284,7 @@
"plugin-mini-bracketed": "plugin-mini-bracketed", "plugin-mini-bracketed": "plugin-mini-bracketed",
"plugin-mini-bufremove": "plugin-mini-bufremove", "plugin-mini-bufremove": "plugin-mini-bufremove",
"plugin-mini-clue": "plugin-mini-clue", "plugin-mini-clue": "plugin-mini-clue",
"plugin-mini-colors": "plugin-mini-colors",
"plugin-minimap-vim": "plugin-minimap-vim", "plugin-minimap-vim": "plugin-minimap-vim",
"plugin-modes-nvim": "plugin-modes-nvim", "plugin-modes-nvim": "plugin-modes-nvim",
"plugin-neo-tree-nvim": "plugin-neo-tree-nvim", "plugin-neo-tree-nvim": "plugin-neo-tree-nvim",

View file

@ -785,5 +785,10 @@
url = "github:echasnovski/mini.clue"; url = "github:echasnovski/mini.clue";
flake = false; flake = false;
}; };
plugin-mini-colors = {
url = "github:echasnovski/mini.colors";
flake = false;
};
}; };
} }

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 ./bracketed
./bufremove ./bufremove
./clue ./clue
./colors
]; ];
} }