nix-community.nixvim/plugins/by-name/orgmode/default.nix
Austin Horstman a7012e7864
treewide: originalName -> packPathName
We used to only think of it as the plugin repo's name, but we have been
needing to use it for the name of the plugin's packpath location.
2024-12-13 21:29:00 -06:00

27 lines
607 B
Nix

{
lib,
...
}:
let
inherit (lib.nixvim) defaultNullOpts;
in
lib.nixvim.neovim-plugin.mkNeovimPlugin {
name = "orgmode";
packPathName = "nvim-orgmode";
maintainers = [ lib.maintainers.refaelsh ];
settingsOptions = {
org_agenda_files = defaultNullOpts.mkNullable (with lib.types; either str (listOf str)) "" ''
A path for Org agenda files.
'';
org_default_notes_file = defaultNullOpts.mkStr "" ''
A path to the default notes file.
'';
};
settingsExample = {
org_agenda_files = "~/orgfiles/**/*";
org_default_notes_file = "~/orgfiles/refile.org";
};
}