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

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

38 lines
1 KiB
Nix
Raw Normal View History

2024-10-16 20:10:45 -03:00
{
config,
lib,
pkgs,
...
}:
2024-12-22 09:58:27 +00:00
lib.nixvim.plugins.mkNeovimPlugin {
2024-10-16 20:10:45 -03:00
name = "telekasten";
packPathName = "telekasten.nvim";
2024-10-16 20:10:45 -03:00
package = "telekasten-nvim";
2025-06-18 02:42:47 +03:00
description = "A Neovim plugin for working with a markdown zettelkasten/wiki and mixing it with a journal, based on telescope.nvim.";
2024-10-16 20:10:45 -03:00
maintainers = [ lib.maintainers.onemoresuza ];
settingsExample = {
home.__raw = ''vim.fn.expand("~/zettelkasten")'';
};
# TODO: Remove once nixpkgs #349346 lands, since it will have plenary-nvim as
# a dependency.
extraOptions = {
plenaryPackage = lib.mkPackageOption pkgs.vimPlugins "plenary-nvim" { nullable = true; };
};
# TODO: Remove once nixpkgs #349346 lands, since it will have telescope-nvim
# as a dependency.
extraConfig = cfg: {
assertions = lib.nixvim.mkAssertions "plugins.telekasten" {
assertion = config.plugins.telescope.enable;
message = ''
You have to enable `plugins.telescope` as `enableTelescope` is activated.
'';
};
2024-10-16 20:10:45 -03:00
extraPlugins = [ cfg.plenaryPackage ];
};
}