nvf/modules/plugins/notes/neorg/neorg.nix
2024-10-09 08:41:00 +02:00

41 lines
1.1 KiB
Nix

{
config,
lib,
pkgs,
...
}: let
inherit (lib.options) mkEnableOption mkOption;
inherit (lib.types) str;
inherit (lib.nvim.types) mkGrammarOption mkPluginSetupOption;
in {
options.vim.notes.neorg = {
enable = mkEnableOption "neorg: Neovim plugin for Neorg";
setupOpts = mkPluginSetupOption "Neorg" {
setup = mkOption {
type = str;
default = ''
load = {
['core.defaults'] = {}, -- Loads default behaviour
['core.concealer'] = {}, -- Adds pretty icons to your documents
['core.export'] = {}, -- Adds export options
['core.integrations.telescope'] = {}, -- Telescope integration
['core.dirman'] = { -- Manages Neorg workspaces
config = {
workspaces = {
notes = '~/Documents/neorg',
},
},
},
},
'';
description = "Neorg configuration";
};
};
treesitter = {
enable = mkEnableOption "Neorg treesitter" // {default = config.vim.languages.enableTreesitter;};
norgPackage = mkGrammarOption pkgs "norg";
};
};
}