1
0
Fork 0
mirror of https://github.com/nix-community/nixvim.git synced 2025-11-16 23:42:47 +01:00
nixvim/plugins/by-name/nerdy/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

25 lines
755 B
Nix

{ lib, config, ... }:
lib.nixvim.plugins.mkNeovimPlugin {
name = "nerdy";
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" ];
};
}