1
0
Fork 0
mirror of https://github.com/NotAShelf/neovim-flake.git synced 2024-12-28 00:19:49 +01:00
neovim-flake/modules/plugins/notes/orgmode/orgmode.nix

40 lines
1.3 KiB
Nix
Raw Normal View History

{
config,
lib,
2023-08-07 13:56:29 +02:00
pkgs,
...
}: let
2024-02-17 16:46:16 +01:00
inherit (lib.modules) mkRenamedOptionModule;
inherit (lib.options) mkEnableOption mkOption;
inherit (lib.types) str listOf;
inherit (lib.nvim.types) mkGrammarOption mkPluginSetupOption;
in {
2024-02-17 16:46:16 +01: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"])
];
options.vim.notes.orgmode = {
2024-06-08 17:58:08 +02:00
enable = mkEnableOption "nvim-orgmode: Neovim plugin for Emacs Orgmode. Get the best of both worlds";
2023-08-07 13:56:29 +02:00
2024-02-17 16:46:16 +01: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 13:56:29 +02:00
2024-02-17 16:46:16 +01:00
org_default_notes_file = 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
};
};
}