mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-09-06 10:21:31 +00:00
mini/colors: init
This commit is contained in:
parent
3d47d3f8c3
commit
86fc7a3764
7 changed files with 59 additions and 0 deletions
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
|
||||
];
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue