nvf/modules/plugins/notes/neorg/neorg.nix

40 lines
987 B
Nix
Raw Normal View History

2024-10-09 07:30:29 +02:00
{
config,
lib,
pkgs,
...
}: let
2024-10-09 10:40:11 +02:00
inherit (lib.options) mkEnableOption mkOption;
inherit (lib.types) submodule listOf str;
2024-10-09 07:30:29 +02:00
inherit (lib.nvim.types) mkGrammarOption mkPluginSetupOption;
in {
options.vim.notes.neorg = {
enable = mkEnableOption "neorg: Neovim plugin for Neorg";
2024-10-09 10:40:11 +02:00
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 = [];
};
};
};
};
};
};
};
2024-10-09 07:30:29 +02:00
treesitter = {
enable = mkEnableOption "Neorg treesitter" // {default = config.vim.languages.enableTreesitter;};
norgPackage = mkGrammarOption pkgs "norg";
};
};
}