mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-01-19 08:22:25 +00:00
mini/colors: init
This commit is contained in:
parent
3d47d3f8c3
commit
86fc7a3764
7 changed files with 59 additions and 0 deletions
|
@ -62,6 +62,7 @@
|
|||
- `mini.bracketed`
|
||||
- `mini.bufremove`
|
||||
- `mini.clue`
|
||||
- `mini.colors`
|
||||
|
||||
[kaktu5](https://github.com/kaktu5):
|
||||
|
||||
|
|
17
flake.lock
17
flake.lock
|
@ -1064,6 +1064,22 @@
|
|||
"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": {
|
||||
"flake": false,
|
||||
"locked": {
|
||||
|
@ -2268,6 +2284,7 @@
|
|||
"plugin-mini-bracketed": "plugin-mini-bracketed",
|
||||
"plugin-mini-bufremove": "plugin-mini-bufremove",
|
||||
"plugin-mini-clue": "plugin-mini-clue",
|
||||
"plugin-mini-colors": "plugin-mini-colors",
|
||||
"plugin-minimap-vim": "plugin-minimap-vim",
|
||||
"plugin-modes-nvim": "plugin-modes-nvim",
|
||||
"plugin-neo-tree-nvim": "plugin-neo-tree-nvim",
|
||||
|
|
|
@ -785,5 +785,10 @@
|
|||
url = "github:echasnovski/mini.clue";
|
||||
flake = false;
|
||||
};
|
||||
|
||||
plugin-mini-colors = {
|
||||
url = "github:echasnovski/mini.colors";
|
||||
flake = false;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
11
modules/plugins/mini/colors/colors.nix
Normal file
11
modules/plugins/mini/colors/colors.nix
Normal file
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
inherit (lib.options) mkEnableOption mkOption;
|
||||
in {
|
||||
options.vim.mini.colors = {
|
||||
enable = mkEnableOption "mini.colors";
|
||||
};
|
||||
}
|
18
modules/plugins/mini/colors/config.nix
Normal file
18
modules/plugins/mini/colors/config.nix
Normal 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()
|
||||
'';
|
||||
};
|
||||
}
|
6
modules/plugins/mini/colors/default.nix
Normal file
6
modules/plugins/mini/colors/default.nix
Normal file
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
imports = [
|
||||
./colors.nix
|
||||
./config.nix
|
||||
];
|
||||
}
|
|
@ -8,5 +8,6 @@
|
|||
./bracketed
|
||||
./bufremove
|
||||
./clue
|
||||
./colors
|
||||
];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue