mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-02-25 12:58:03 +00:00
40 lines
1.1 KiB
Nix
40 lines
1.1 KiB
Nix
{
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}: let
|
|
inherit (lib.options) mkEnableOption mkOption;
|
|
inherit (lib.types) lines;
|
|
inherit (lib.nvim.types) mkGrammarOption mkPluginSetupOption;
|
|
in {
|
|
options.vim.notes.neorg = {
|
|
enable = mkEnableOption "neorg: Neovim plugin for Neorg";
|
|
|
|
setupOpts = mkOption {
|
|
type = lines;
|
|
default = ''
|
|
|
|
load = {
|
|
['core.defaults'] = {}, -- Loads default behaviour
|
|
['core.concealer'] = {}, -- Adds pretty icons to your documents
|
|
['core.export'] = {}, -- Adds export options
|
|
['core.integrations.telescope'] = {}, -- Telescope integration
|
|
['core.dirman'] = { -- Manages Neorg workspaces
|
|
config = {
|
|
workspaces = {
|
|
notes = '~/Documents/neorg',
|
|
},
|
|
},
|
|
},
|
|
},
|
|
'';
|
|
description = "Neorg configuration";
|
|
};
|
|
|
|
treesitter = {
|
|
enable = mkEnableOption "Neorg treesitter" // {default = config.vim.languages.enableTreesitter;};
|
|
norgPackage = mkGrammarOption pkgs "norg";
|
|
};
|
|
};
|
|
}
|