plugins/nvim-orgmode: init

This commit is contained in:
refaelsh 2024-08-29 23:08:07 +03:00 committed by Austin Horstman
parent f3362d2e9d
commit 2b30ee8703
No known key found for this signature in database
3 changed files with 57 additions and 0 deletions

View file

@ -76,6 +76,7 @@
./languages/markdown/preview.nix
./languages/nix.nix
./languages/nvim-jdtls.nix
./languages/nvim-orgmode.nix
./languages/openscad.nix
./languages/otter.nix
./languages/parinfer-rust.nix

View file

@ -0,0 +1,30 @@
{
lib,
config,
pkgs,
...
}:
let
inherit (lib.nixvim) defaultNullOpts;
in
lib.nixvim.neovim-plugin.mkNeovimPlugin config {
name = "orgmode";
originalName = "nvim-orgmode";
defaultPackage = pkgs.vimPlugins.orgmode;
maintainers = [ lib.nixvim.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";
};
}

View file

@ -0,0 +1,26 @@
{
empty = {
plugins.orgmode.enable = true;
};
default = {
plugins.orgmode = {
enable = true;
settings = {
org_agenda_files = "";
org_default_notes_file = "";
};
};
};
example = {
plugins.orgmode = {
enable = true;
settings = {
org_agenda_files = "~/orgfiles/**/*";
org_default_notes_file = "~/orgfiles/refile.org";
};
};
};
}