mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-02-24 12:28:32 +00:00
neorg: sane default for setupOpts
This commit is contained in:
parent
e1d292aac3
commit
90795a506a
1 changed files with 21 additions and 2 deletions
|
@ -4,13 +4,32 @@
|
||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
inherit (lib.options) mkEnableOption;
|
inherit (lib.options) mkEnableOption mkOption;
|
||||||
|
inherit (lib.types) submodule listOf str;
|
||||||
inherit (lib.nvim.types) mkGrammarOption mkPluginSetupOption;
|
inherit (lib.nvim.types) mkGrammarOption mkPluginSetupOption;
|
||||||
in {
|
in {
|
||||||
options.vim.notes.neorg = {
|
options.vim.notes.neorg = {
|
||||||
enable = mkEnableOption "neorg: Neovim plugin for 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 = {
|
treesitter = {
|
||||||
enable = mkEnableOption "Neorg treesitter" // {default = config.vim.languages.enableTreesitter;};
|
enable = mkEnableOption "Neorg treesitter" // {default = config.vim.languages.enableTreesitter;};
|
||||||
|
|
Loading…
Add table
Reference in a new issue