neorg: sane default for setupOpts

This commit is contained in:
Soliprem 2024-10-09 10:40:11 +02:00
parent e1d292aac3
commit 90795a506a

View file

@ -4,13 +4,32 @@
pkgs,
...
}: let
inherit (lib.options) mkEnableOption;
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: Neovim plugin for Neorg";
setupOpts = mkPluginSetupOption "Neorg" {};
setupOpts = mkPluginSetupOption "Neorg" {
load = {
"core.defaults" = mkOption {
default = {};
type = submodule {
options = {
enable = mkEnableOption "A wrapper to interface with several different completion engines.";
config = {
disable = mkOption {
type = listOf str;
default = [];
};
};
};
};
};
};
};
treesitter = {
enable = mkEnableOption "Neorg treesitter" // {default = config.vim.languages.enableTreesitter;};