mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 00:25:42 +02:00
25 lines
692 B
Nix
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" ];
|
|
};
|
|
}
|