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-02-17 15:46:16 +00:00
|
|
|
inherit (lib.modules) mkRenamedOptionModule;
|
|
|
|
inherit (lib.options) mkEnableOption mkOption;
|
|
|
|
inherit (lib.types) str listOf;
|
|
|
|
inherit (lib.nvim.types) mkGrammarOption mkPluginSetupOption;
|
2023-11-07 00:50:27 +00:00
|
|
|
in {
|
2024-02-17 15:46:16 +00:00
|
|
|
imports = [
|
|
|
|
(mkRenamedOptionModule ["vim" "notes" "orgmode" "orgAgendaFiles"] ["vim" "notes" "orgmode" "setupOpts" "org_agenda_files"])
|
|
|
|
(mkRenamedOptionModule ["vim" "notes" "orgmode" "orgDefaultNotesFile"] ["vim" "notes" "orgmode" "setupOpts" "org_default_notes_file"])
|
|
|
|
];
|
|
|
|
|
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
|
|
|
|
2024-02-17 15:46:16 +00:00
|
|
|
setupOpts = mkPluginSetupOption "Orgmode" {
|
|
|
|
org_agenda_files = mkOption {
|
|
|
|
type = listOf str;
|
|
|
|
default = ["~/Documents/org/*" "~/my-orgs/**/*"];
|
|
|
|
description = "List of org files to be used as agenda files.";
|
|
|
|
};
|
2023-08-07 11:56:29 +00:00
|
|
|
|
2024-02-17 15:46:16 +00:00
|
|
|
org_default_notes_file = mkOption {
|
|
|
|
type = str;
|
|
|
|
default = "~/Documents/org/refile.org";
|
|
|
|
description = "Default org file to be used for notes.";
|
|
|
|
};
|
2023-02-27 19:26:16 +00:00
|
|
|
};
|
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
|
|
|
};
|
|
|
|
}
|