From 90795a506a307cf82fc98c6e003bb76072301e6d Mon Sep 17 00:00:00 2001 From: Soliprem Date: Wed, 9 Oct 2024 10:40:11 +0200 Subject: [PATCH] neorg: sane default for setupOpts --- modules/plugins/notes/neorg/neorg.nix | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/modules/plugins/notes/neorg/neorg.nix b/modules/plugins/notes/neorg/neorg.nix index 308d5eb7..f6ab8aec 100644 --- a/modules/plugins/notes/neorg/neorg.nix +++ b/modules/plugins/notes/neorg/neorg.nix @@ -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;};