neovim-flake/modules/notes/orgmode/orgmode.nix

31 lines
768 B
Nix
Raw Normal View History

{
config,
lib,
2023-08-07 13:56:29 +02:00
pkgs,
...
}:
with lib;
2023-03-31 04:20:35 +02: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 13:56:29 +02: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 13:56:29 +02:00
orgDefaultNotesFile = mkOption {
type = types.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;};
2023-08-07 13:56:29 +02:00
orgPackage = nvim.types.mkGrammarOption pkgs "org";
};
};
}