113 lines
2.6 KiB
Nix
113 lines
2.6 KiB
Nix
{ vars, lib, ... }: {
|
|
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.todo-introspector" = lib.nixvim.emptyTable;
|
|
"core.qol.todo_items" = {
|
|
config = {
|
|
create_todo_parents = true;
|
|
};
|
|
|
|
};
|
|
"core.presenter" = {
|
|
config = {
|
|
zen_mode = "zen-mode";
|
|
};
|
|
};
|
|
"core.integrations.nvim-cmp" = lib.nixvim.emptyTable;
|
|
"core.export.markdown" = lib.nixvim.emptyTable;
|
|
"core.summary" = lib.nixvim.emptyTable;
|
|
"core.tangle" = lib.nixvim.emptyTable;
|
|
"core.text-objects" = lib.nixvim.emptyTable;
|
|
"core.integrations.telescope" = lib.nixvim.emptyTable;
|
|
"core.ui.calendar" = lib.nixvim.emptyTable;
|
|
};
|
|
};
|
|
keymaps = [
|
|
{
|
|
key = "<leader>ni";
|
|
action = ":Neorg index<CR>";
|
|
options = {
|
|
silent = true;
|
|
desc = "[neorg] Index";
|
|
};
|
|
}
|
|
{
|
|
key = "<localleader>nt";
|
|
action = ":Neorg toc<CR>";
|
|
options = {
|
|
silent = true;
|
|
desc = "[neorg] TOC";
|
|
};
|
|
}
|
|
{
|
|
key = "<localleader>nw";
|
|
action = ":Telescope neorg switch-workspace<CR>";
|
|
options = {
|
|
silent = true;
|
|
desc = "[neorg] Switch Workspace";
|
|
};
|
|
}
|
|
{
|
|
key = "<localleader>nc";
|
|
action = ":Neorg toggle-concealer<CR>";
|
|
options = {
|
|
silent = true;
|
|
desc = "[neorg] Toggle Concealer";
|
|
};
|
|
}
|
|
{
|
|
key = "<localleader>npn";
|
|
action = "<Plug>(neorg.presenter.next-page)";
|
|
options = {
|
|
silent = true;
|
|
desc = "[neorg] Presenter Next Page";
|
|
};
|
|
}
|
|
{
|
|
key = "<localleader>pp";
|
|
action = "<Plug>(neorg.presenter.previous-page)";
|
|
options = {
|
|
silent = true;
|
|
desc = "[neorg] Presenter Previous Page";
|
|
};
|
|
}
|
|
{
|
|
key = "<localleader>pc";
|
|
action = "<Plug>(neorg.presenter.close)";
|
|
options = {
|
|
silent = true;
|
|
desc = "[neorg] Presenter Close";
|
|
};
|
|
}
|
|
];
|
|
}
|