nix-community.nixvim/plugins/by-name/nerdy/default.nix
osbm a41559f093
Some checks are pending
Publish every Git push to main to FlakeHub / flakehub-publish (push) Waiting to run
Publish every git push to Flakestry / publish-flake (push) Waiting to run
Documentation / Version info (push) Waiting to run
Documentation / Build (push) Blocked by required conditions
Documentation / Combine builds (push) Blocked by required conditions
Documentation / Deploy (push) Blocked by required conditions
treewide: add plugin descriptions
2025-06-24 06:10:11 +00:00

26 lines
786 B
Nix

{ lib, config, ... }:
lib.nixvim.plugins.mkNeovimPlugin {
name = "nerdy";
packPathName = "nerdy.nvim";
package = "nerdy-nvim";
description = "A Neovim plugin for searching, previewing, and inserting Nerd Font glyphs.";
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" ];
};
}