59 lines
1.3 KiB
Nix
59 lines
1.3 KiB
Nix
{vars, lib, inputs, ...}: {
|
|
plugins.neorg = {
|
|
enable = true;
|
|
modules = {
|
|
"core.defaults" = lib.nixvim.emptyTable;
|
|
"core.dirman" = {
|
|
config = {
|
|
inherit (vars.notes) workspaces;
|
|
default_workspace = "general";
|
|
};
|
|
};
|
|
"core.concealer" = {
|
|
config = {
|
|
init_open_folds = "auto";
|
|
};
|
|
};
|
|
"core.completion" = {
|
|
config = {
|
|
engine = "nvim-cmp";
|
|
};
|
|
};
|
|
"core.export" = {
|
|
config = {
|
|
export_dir = "~/Sync/notes-export";
|
|
};
|
|
};
|
|
"core.esupports.metagen" = {
|
|
config = {
|
|
type = "auto";
|
|
author = vars.name;
|
|
};
|
|
};
|
|
"core.export.markdown" = lib.nixvim.emptyTable;
|
|
"core.summary" = lib.nixvim.emptyTable;
|
|
"core.tangle" = lib.nixvim.emptyTable;
|
|
"core.integrations.telescope" = lib.nixvim.emptyTable;
|
|
"core.ui.calendar" = lib.nixvim.emptyTable;
|
|
};
|
|
};
|
|
keymaps = [
|
|
{
|
|
key = "<leader>ni";
|
|
action = ":Neorg index<CR>";
|
|
}
|
|
{
|
|
key = "<leader>nt";
|
|
action = ":Neorg toc<CR>";
|
|
}
|
|
{
|
|
key = "<leader>nw";
|
|
action = ":Telescope neorg switch-workspace<CR>";
|
|
}
|
|
{
|
|
key = "<leader>nc";
|
|
action = ":Neorg toggle-concealer<CR>";
|
|
}
|
|
];
|
|
}
|