mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-20 16:15:43 +02:00
36 lines
919 B
Nix
36 lines
919 B
Nix
{
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}:
|
|
lib.nixvim.plugins.mkNeovimPlugin {
|
|
name = "telekasten";
|
|
packPathName = "telekasten.nvim";
|
|
package = "telekasten-nvim";
|
|
|
|
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.
|
|
'';
|
|
};
|
|
|
|
extraPlugins = [ cfg.plenaryPackage ];
|
|
};
|
|
}
|