mini/icons: init

This commit is contained in:
LilleAila 2025-01-17 20:34:02 +01:00
parent 755052cea9
commit f31b2e06cb
No known key found for this signature in database
GPG key ID: D1ACCDCF2B9B9799
7 changed files with 62 additions and 0 deletions

View file

@ -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):

View file

@ -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",

View file

@ -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;
};
}; };
} }

View file

@ -19,5 +19,6 @@
./git ./git
./hipatterns ./hipatterns
./hues ./hues
./icons
]; ];
} }

View 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})
'';
};
}

View file

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

View 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" {};
};
}