nix-community.nixvim/plugins/by-name/harpoon/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

43 lines
929 B
Nix
Raw Normal View History

{
lib,
config,
...
}:
let
inherit (lib) mkEnableOption;
in
lib.nixvim.plugins.mkNeovimPlugin {
name = "harpoon";
package = "harpoon2";
2025-06-18 02:42:47 +03:00
description = "Quickly access files and marks in Neovim.";
maintainers = [ lib.maintainers.GaetanLepage ];
setup = ":setup";
# TODO: introduced 2025-04-03: remove after 25.11
imports = [
./deprecations.nix
];
extraOptions = {
enableTelescope = mkEnableOption "telescope integration";
};
settingsExample = {
settings = {
save_on_toggle = true;
sync_on_ui_close = false;
2024-05-05 19:39:35 +02:00
};
};
extraConfig = cfg: {
assertions = lib.nixvim.mkAssertions "plugins.harpoon" {
assertion = cfg.enableTelescope -> config.plugins.telescope.enable;
message = "The harpoon telescope integration needs telescope to function as intended.";
};
plugins.telescope.enabledExtensions = lib.mkIf cfg.enableTelescope [ "harpoon" ];
2024-05-05 19:39:35 +02:00
};
}