mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-05 14:54:33 +02:00
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
26 lines
786 B
Nix
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" ];
|
|
};
|
|
}
|