mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-02-24 20:38:47 +00:00
neorg: setupOpts work
This commit is contained in:
parent
4953057603
commit
286cf1bc7c
2 changed files with 22 additions and 19 deletions
|
@ -41,7 +41,11 @@ in {
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
require('neorg').setup(${toLuaObject cfg.setupOpts})
|
require('neorg').setup{
|
||||||
|
${cfg.setupOpts}
|
||||||
|
}
|
||||||
|
|
||||||
|
vim.wo.conceallevel = 2
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,32 +5,31 @@
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
inherit (lib.options) mkEnableOption mkOption;
|
inherit (lib.options) mkEnableOption mkOption;
|
||||||
inherit (lib.types) str;
|
inherit (lib.types) lines;
|
||||||
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 = mkOption {
|
||||||
setup = mkOption {
|
type = lines;
|
||||||
type = str;
|
default = ''
|
||||||
default = ''
|
|
||||||
load = {
|
load = {
|
||||||
['core.defaults'] = {}, -- Loads default behaviour
|
['core.defaults'] = {}, -- Loads default behaviour
|
||||||
['core.concealer'] = {}, -- Adds pretty icons to your documents
|
['core.concealer'] = {}, -- Adds pretty icons to your documents
|
||||||
['core.export'] = {}, -- Adds export options
|
['core.export'] = {}, -- Adds export options
|
||||||
['core.integrations.telescope'] = {}, -- Telescope integration
|
['core.integrations.telescope'] = {}, -- Telescope integration
|
||||||
['core.dirman'] = { -- Manages Neorg workspaces
|
['core.dirman'] = { -- Manages Neorg workspaces
|
||||||
config = {
|
config = {
|
||||||
workspaces = {
|
workspaces = {
|
||||||
notes = '~/Documents/neorg',
|
notes = '~/Documents/neorg',
|
||||||
},
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
'';
|
},
|
||||||
description = "Neorg configuration";
|
'';
|
||||||
};
|
description = "Neorg configuration";
|
||||||
};
|
};
|
||||||
|
|
||||||
treesitter = {
|
treesitter = {
|
||||||
|
|
Loading…
Add table
Reference in a new issue