mirror of
https://github.com/NotAShelf/nvf.git
synced 2024-11-27 07:26:46 +00:00
51 lines
1.4 KiB
Nix
51 lines
1.4 KiB
Nix
|
{
|
||
|
config,
|
||
|
lib,
|
||
|
pkgs,
|
||
|
...
|
||
|
}: let
|
||
|
inherit (lib.options) mkEnableOption mkOption;
|
||
|
inherit (lib.types) submodule listOf str;
|
||
|
inherit (lib.nvim.types) mkGrammarOption mkPluginSetupOption;
|
||
|
in {
|
||
|
options.vim.notes.neorg = {
|
||
|
enable = mkEnableOption ''
|
||
|
Neorg: An intuitive note-taking and organization tool with a structured nested syntax.
|
||
|
'';
|
||
|
|
||
|
setupOpts = mkPluginSetupOption "Neorg" {
|
||
|
load = {
|
||
|
"core.defaults" = mkOption {
|
||
|
default = {};
|
||
|
description = ''
|
||
|
all of the most important modules that any user would want to have a "just works" experience
|
||
|
'';
|
||
|
|
||
|
type = submodule {
|
||
|
options = {
|
||
|
enable = mkEnableOption ''
|
||
|
all of the most important modules that any user would want to have a "just works" experience
|
||
|
'';
|
||
|
config = {
|
||
|
disable = mkOption {
|
||
|
description = ''
|
||
|
list of modules from to be disabled from core.defaults
|
||
|
'';
|
||
|
type = listOf str;
|
||
|
default = [];
|
||
|
example = ["core.autocommands" "core.itero"];
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
|
||
|
treesitter = {
|
||
|
enable = mkEnableOption "Neorg treesitter" // {default = config.vim.languages.enableTreesitter;};
|
||
|
norgPackage = mkGrammarOption pkgs "norg";
|
||
|
};
|
||
|
};
|
||
|
}
|