neovim-flake/modules/notes/orgmode/orgmode.nix

32 lines
846 B
Nix
Raw Normal View History

{
config,
lib,
2023-08-07 13:56:29 +02:00
pkgs,
...
}: let
inherit (lib.options) mkOption mkEnableOption;
inherit (lib.types) str;
inherit (lib.nvim.types) mkGrammarOption;
in {
options.vim.notes.orgmode = {
enable = mkEnableOption "nvim-orgmode: Neovim plugin for Emac Orgmode. Get the best of both worlds";
2023-08-07 13:56:29 +02:00
orgAgendaFiles = mkOption {
type = str;
default = "{'~/Documents/org/*', '~/my-orgs/**/*'}";
description = "List of org files to be used as agenda files.";
};
2023-08-07 13:56:29 +02:00
orgDefaultNotesFile = mkOption {
type = str;
default = "~/Documents/org/refile.org";
description = "Default org file to be used for notes.";
};
2023-08-07 13:56:29 +02:00
treesitter = {
enable = mkEnableOption "Orgmode treesitter" // {default = config.vim.languages.enableTreesitter;};
orgPackage = mkGrammarOption pkgs "org";
2023-08-07 13:56:29 +02:00
};
};
}