2023-02-27 19:26:16 +00:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
lib,
|
2023-08-07 11:56:29 +00:00
|
|
|
pkgs,
|
2023-02-27 19:26:16 +00:00
|
|
|
...
|
2023-11-07 00:50:27 +00:00
|
|
|
}: let
|
2024-03-12 00:47:01 +00:00
|
|
|
inherit (lib.options) mkOption mkEnableOption;
|
|
|
|
inherit (lib.types) str;
|
|
|
|
inherit (lib.nvim.types) mkGrammarOption;
|
2023-11-07 00:50:27 +00:00
|
|
|
in {
|
2023-02-27 19:26:16 +00:00
|
|
|
options.vim.notes.orgmode = {
|
2023-06-05 20:10:25 +00:00
|
|
|
enable = mkEnableOption "nvim-orgmode: Neovim plugin for Emac Orgmode. Get the best of both worlds";
|
2023-08-07 11:56:29 +00:00
|
|
|
|
2023-02-27 19:26:16 +00:00
|
|
|
orgAgendaFiles = mkOption {
|
2024-03-12 00:47:01 +00:00
|
|
|
type = str;
|
2023-06-05 20:10:25 +00:00
|
|
|
default = "{'~/Documents/org/*', '~/my-orgs/**/*'}";
|
2023-02-27 19:26:16 +00:00
|
|
|
description = "List of org files to be used as agenda files.";
|
|
|
|
};
|
2023-08-07 11:56:29 +00:00
|
|
|
|
2023-02-27 19:26:16 +00:00
|
|
|
orgDefaultNotesFile = mkOption {
|
2024-03-12 00:47:01 +00:00
|
|
|
type = str;
|
2023-06-05 20:10:25 +00:00
|
|
|
default = "~/Documents/org/refile.org";
|
2023-02-27 19:26:16 +00:00
|
|
|
description = "Default org file to be used for notes.";
|
|
|
|
};
|
2023-08-07 11:56:29 +00:00
|
|
|
|
|
|
|
treesitter = {
|
2023-10-21 17:15:36 +00:00
|
|
|
enable = mkEnableOption "Orgmode treesitter" // {default = config.vim.languages.enableTreesitter;};
|
2024-03-12 00:47:01 +00:00
|
|
|
orgPackage = mkGrammarOption pkgs "org";
|
2023-08-07 11:56:29 +00:00
|
|
|
};
|
2023-02-27 19:26:16 +00:00
|
|
|
};
|
|
|
|
}
|