mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-01-19 16:32:24 +00:00
mini/icons: init
This commit is contained in:
parent
755052cea9
commit
f31b2e06cb
7 changed files with 62 additions and 0 deletions
|
@ -73,6 +73,7 @@
|
||||||
- `mini.git`
|
- `mini.git`
|
||||||
- `mini.hipatterns`
|
- `mini.hipatterns`
|
||||||
- `mini.hues`
|
- `mini.hues`
|
||||||
|
- `mini.icons`
|
||||||
|
|
||||||
[kaktu5](https://github.com/kaktu5):
|
[kaktu5](https://github.com/kaktu5):
|
||||||
|
|
||||||
|
|
17
flake.lock
17
flake.lock
|
@ -1240,6 +1240,22 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"plugin-mini-icons": {
|
||||||
|
"flake": false,
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1737036219,
|
||||||
|
"narHash": "sha256-w0PxiTj9uiUffZXkMM18IO/b/zPpdRKW9ydyhvXRoqE=",
|
||||||
|
"owner": "echasnovski",
|
||||||
|
"repo": "mini.icons",
|
||||||
|
"rev": "910db5df9724d65371182948f921fce23c2c881e",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "echasnovski",
|
||||||
|
"repo": "mini.icons",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"plugin-minimap-vim": {
|
"plugin-minimap-vim": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
|
@ -2455,6 +2471,7 @@
|
||||||
"plugin-mini-git": "plugin-mini-git",
|
"plugin-mini-git": "plugin-mini-git",
|
||||||
"plugin-mini-hipatterns": "plugin-mini-hipatterns",
|
"plugin-mini-hipatterns": "plugin-mini-hipatterns",
|
||||||
"plugin-mini-hues": "plugin-mini-hues",
|
"plugin-mini-hues": "plugin-mini-hues",
|
||||||
|
"plugin-mini-icons": "plugin-mini-icons",
|
||||||
"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",
|
||||||
|
|
|
@ -840,5 +840,10 @@
|
||||||
url = "github:echasnovski/mini.hues";
|
url = "github:echasnovski/mini.hues";
|
||||||
flake = false;
|
flake = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
plugin-mini-icons = {
|
||||||
|
url = "github:echasnovski/mini.icons";
|
||||||
|
flake = false;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -19,5 +19,6 @@
|
||||||
./git
|
./git
|
||||||
./hipatterns
|
./hipatterns
|
||||||
./hues
|
./hues
|
||||||
|
./icons
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
19
modules/plugins/mini/icons/config.nix
Normal file
19
modules/plugins/mini/icons/config.nix
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
inherit (lib.modules) mkIf;
|
||||||
|
inherit (lib.nvim.dag) entryAnywhere;
|
||||||
|
inherit (lib.nvim.lua) toLuaObject;
|
||||||
|
|
||||||
|
cfg = config.vim.mini.icons;
|
||||||
|
in {
|
||||||
|
vim = mkIf cfg.enable {
|
||||||
|
startPlugins = ["mini-icons"];
|
||||||
|
|
||||||
|
pluginRC.mini-icons = entryAnywhere ''
|
||||||
|
require("mini.icons").setup(${toLuaObject cfg.setupOpts})
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
}
|
6
modules/plugins/mini/icons/default.nix
Normal file
6
modules/plugins/mini/icons/default.nix
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
./icons.nix
|
||||||
|
./config.nix
|
||||||
|
];
|
||||||
|
}
|
13
modules/plugins/mini/icons/icons.nix
Normal file
13
modules/plugins/mini/icons/icons.nix
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
inherit (lib.options) mkEnableOption mkOption;
|
||||||
|
inherit (lib.nvim.types) mkPluginSetupOption;
|
||||||
|
in {
|
||||||
|
options.vim.mini.icons = {
|
||||||
|
enable = mkEnableOption "mini.icons";
|
||||||
|
setupOpts = mkPluginSetupOption "mini.icons" {};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue