nixos-combined-flake/modules/nixvim/plugins/neorg.nix

71 lines
1.4 KiB
Nix

{vars, ...}: {
plugins.neorg = {
enable = true;
modules = {
"core.defaults" = {
__empty = null;
};
"core.concealer" = {
config = {
init_open_folds = "auto";
};
};
"core.dirman" = {
config = {
inherit (vars.notes) workspaces;
default_workspace = "general";
};
};
"core.completion" = {
config = {
engine = "nvim-cmp";
};
};
"core.summary" = {
__empty = null;
};
"core.tangle" = {
__empty = null;
};
"core.export" = {
config = {
export_dir = "~/Sync/notes-export";
};
};
"core.export.markdown" = {
__empty = null;
};
"core.esupports.metagen" = {
config = {
type = "auto";
author = vars.name;
};
};
"core.integrations.telescope" = {
__empty = null;
};
"core.ui.calendar" = {
__empty = null;
};
};
};
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>";
}
];
}