1
0
Fork 0
mirror of https://github.com/nix-community/nixvim.git synced 2025-11-08 11:36:07 +01:00
nixvim/plugins/by-name/mini-icons/default.nix
saygo-png c4b27080a6 treewide: infer packPathName menial work
Signed-off-by: saygo-png <saygo.mail@proton.me>
2025-09-27 23:49:59 +00:00

41 lines
957 B
Nix

{ lib, ... }:
lib.nixvim.plugins.mkNeovimPlugin {
name = "mini-icons";
moduleName = "mini.icons";
configLocation = lib.mkOrder 800 "extraConfigLua";
maintainers = [ lib.maintainers.HeitorAugustoLN ];
settingsExample = {
style = "glyph";
extension = {
lua = {
hl = "Special";
};
};
file = {
"init.lua" = {
glyph = "";
hl = "MiniIconsGreen";
};
};
};
extraOptions = {
mockDevIcons = lib.mkEnableOption "" // {
description = ''
Whether to tell `mini.icons` to emulate `nvim-web-devicons` for plugins that don't natively support it.
When enabled, you don't need to set `plugins.web-devicons.enable`. This will replace the need for it.
'';
};
};
extraConfig = cfg: {
plugins.mini-icons.luaConfig.content = lib.mkAfter (
lib.optionalString cfg.mockDevIcons ''
MiniIcons.mock_nvim_web_devicons()
''
);
};
}