mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-29 07:05:13 +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
37 lines
1 KiB
Nix
37 lines
1 KiB
Nix
{
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}:
|
|
lib.nixvim.plugins.mkNeovimPlugin {
|
|
name = "telekasten";
|
|
packPathName = "telekasten.nvim";
|
|
package = "telekasten-nvim";
|
|
description = "A Neovim plugin for working with a markdown zettelkasten/wiki and mixing it with a journal, based on telescope.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 ];
|
|
};
|
|
}
|