my_nixvim_sharings/config/plugins/neorg.nix

51 lines
1.3 KiB
Nix

{
plugins = {
neorg = {
enable = true;
modules = {
# "core.defaults" = { __empty = null; }; # -- Loads default behaviour
# "core.summary" = { __empty = null; };
# "core.defaults" = { __empty = null; };
# "core.export" = { __empty = null; };
# "core.export.markdown" = { __empty = null; };
"core.defaults" = {}; # -- Loads default behaviour
"core.summary" = {};
"core.defaults" = {};
"core.export" = {};
"core.export.markdown" = {};
"core.concealer" = {
config = {
folds = false;
};
}; #-- Adds pretty icons to your documents
"core.dirman" = {
config = {
workspaces = {
n = "~/neorg/notes";
e = "~/neorg/english";
l = "~/neorg/letter";
g = "~/neorg/grammar";
p = "~/neorg/perl";
m = "~/neorg/misc";
nvim = "~/.config/nvim/NeorgNvimNotes";
};
default_workspace = "m";
};
};
"core.keybinds" = {
config = {
hook = {
__raw = ''function(keybinds)
-- unmap Alt-Enter to "core.itero.next-iteration", "<CR>"
keybinds.unmap("norg", "i", "<M-CR>")
-- map Shift-Enter to "core.itero.next-iteration", "<CR>"
keybinds.remap_event("norg", "i", "<S-CR>", "core.itero.next-iteration", "<CR>")
end;
'';
};
};
};
};
};
};
}