nvf/modules/notes/orgmode/orgmode.nix

31 lines
775 B
Nix
Raw Normal View History

{
config,
lib,
2023-08-07 11:56:29 +00:00
pkgs,
...
}:
with lib;
2023-03-31 02:20:35 +00:00
with builtins; {
options.vim.notes.orgmode = {
enable = mkEnableOption "nvim-orgmode: Neovim plugin for Emac Orgmode. Get the best of both worlds";
2023-08-07 11:56:29 +00:00
orgAgendaFiles = mkOption {
type = types.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
orgDefaultNotesFile = mkOption {
type = types.str;
default = "~/Documents/org/refile.org";
description = "Default org file to be used for notes.";
};
2023-08-07 11:56:29 +00:00
treesitter = {
enable = mkEnableOption "Enable Orgmode treesitter" // {default = config.vim.languages.enableTreesitter;};
orgPackage = nvim.types.mkGrammarOption pkgs "org";
};
};
}