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