nix-community.nixvim/plugins/by-name/nerdy/default.nix
2025-03-24 19:23:41 +01:00

25 lines
692 B
Nix

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