2025-03-21 11:02:08 +01:00
|
|
|
{ lib, config, ... }:
|
|
|
|
lib.nixvim.plugins.mkNeovimPlugin {
|
|
|
|
name = "nerdy";
|
|
|
|
packPathName = "nerdy.nvim";
|
|
|
|
package = "nerdy-nvim";
|
2025-06-18 02:42:47 +03:00
|
|
|
description = "A Neovim plugin for searching, previewing, and inserting Nerd Font glyphs.";
|
2025-03-21 11:02:08 +01:00
|
|
|
|
|
|
|
maintainers = [ lib.maintainers.GaetanLepage ];
|
|
|
|
|
|
|
|
callSetup = false;
|
|
|
|
hasSettings = false;
|
|
|
|
|
|
|
|
extraOptions = {
|
|
|
|
enableTelescope = lib.mkEnableOption "telescope integration";
|
|
|
|
};
|
|
|
|
|
|
|
|
extraConfig = cfg: {
|
|
|
|
assertions = lib.nixvim.mkAssertions "plugins.nerdy" {
|
|
|
|
assertion = cfg.enableTelescope -> config.plugins.telescope.enable;
|
|
|
|
message = ''
|
|
|
|
Telescope support (enableTelescope) is enabled but the telescope plugin is not.
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
plugins.telescope.enabledExtensions = lib.mkIf cfg.enableTelescope [ "nerdy" ];
|
|
|
|
};
|
|
|
|
}
|