visuals/nvim-web-devicons: bump version; lazyload on DeferredUIEnter

Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I61177a580ef1be42f9129a19efd8fad26a6a6964
This commit is contained in:
raf 2026-02-14 22:39:05 +03:00
commit 325eae4a75
Signed by: NotAShelf
GPG key ID: 29D95B64378DB4BF
3 changed files with 23 additions and 22 deletions

View file

@ -4,8 +4,6 @@
... ...
}: let }: let
inherit (lib.modules) mkIf; inherit (lib.modules) mkIf;
inherit (lib.nvim.lua) toLuaObject;
inherit (lib.nvim.dag) entryAnywhere;
cfg = config.vim.visuals.nvim-web-devicons; cfg = config.vim.visuals.nvim-web-devicons;
in { in {
@ -13,9 +11,12 @@ in {
vim = { vim = {
startPlugins = ["nvim-web-devicons"]; startPlugins = ["nvim-web-devicons"];
pluginRC.nvim-web-devicons = entryAnywhere '' vim.lazy.plugins.icon-picker-nvim = {
require("nvim-web-devicons").setup(${toLuaObject cfg.setupOpts}) package = "nvim-web-devicons";
''; setupModule = "nvim-web-deviconsr";
event = ["DeferredUIEnter"];
inherit (cfg) setupOpts;
};
}; };
}; };
} }

View file

@ -1,6 +1,6 @@
{lib, ...}: let {lib, ...}: let
inherit (lib.modules) mkRenamedOptionModule; inherit (lib.modules) mkRenamedOptionModule;
inherit (lib.options) mkOption mkEnableOption literalExpression; inherit (lib.options) mkOption mkEnableOption;
inherit (lib.types) nullOr attrsOf attrs enum; inherit (lib.types) nullOr attrsOf attrs enum;
inherit (lib.nvim.types) mkPluginSetupOption; inherit (lib.nvim.types) mkPluginSetupOption;
in { in {
@ -16,27 +16,27 @@ in {
variant = mkOption { variant = mkOption {
type = nullOr (enum ["light" "dark"]); type = nullOr (enum ["light" "dark"]);
default = null; default = null;
description = "Set the light or dark variant manually, instead of relying on `background`"; description = ''
Set the light or dark variant manually, instead of relying on `background`
'';
}; };
override = mkOption { override = mkOption {
type = attrsOf attrs; type = attrsOf attrs;
default = {}; default = {};
example = literalExpression '' example = {
{
zsh = { zsh = {
name = "Zsh"; name = "Zsh";
icon = ""; icon = "";
color = "#428850"; color = "#428850";
cterm_color = "65"; cterm_color = "65";
}; };
} };
'';
description = '' description = ''
Your personal icon overrides. Your personal icon overrides.
You can specify color or cterm_color instead of specifying You can specify color or `cterm_color` instead of specifying both of
both of them. DevIcon will be appended to `name` them. `DevIcon` will be appended to `name`
''; '';
}; };
}; };

View file

@ -2129,9 +2129,9 @@
}, },
"branch": "master", "branch": "master",
"submodules": false, "submodules": false,
"revision": "b8221e42cf7287c4dcde81f232f58d7b947c210d", "revision": "746ffbb17975ebd6c40142362eee1b0249969c5c",
"url": "https://github.com/nvim-tree/nvim-web-devicons/archive/b8221e42cf7287c4dcde81f232f58d7b947c210d.tar.gz", "url": "https://github.com/nvim-tree/nvim-web-devicons/archive/746ffbb17975ebd6c40142362eee1b0249969c5c.tar.gz",
"hash": "sha256-lVrakFrpIP9lp7sMfMb33KeMPIkcn1qBFVytJzKCfuE=" "hash": "sha256-jXWBPcfLwSkWQ/eRbxVDWC7kFOODSsCRmzC3rHKQLhQ="
}, },
"obsidian-nvim": { "obsidian-nvim": {
"type": "GitRelease", "type": "GitRelease",