2024-02-02 03:09:35 +00:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
# The main star of the show.
|
|
|
|
plugins.neorg.enable = true;
|
|
|
|
|
|
|
|
# Set it up, set it up, set it up.
|
|
|
|
plugins.neorg.extraOptions = {
|
|
|
|
lazy_loading = true;
|
|
|
|
|
|
|
|
load = {
|
|
|
|
# Pretty much required with tree-sitter integration and all.
|
|
|
|
"core.defaults" = { __empty = null; };
|
|
|
|
|
|
|
|
# Conceal your blade (which is the markup, in which it is pretty sharp to
|
|
|
|
# look at).
|
|
|
|
"core.concealer" = { __empty = null; };
|
|
|
|
|
|
|
|
# Dear diary...
|
|
|
|
"core.journal" = {
|
|
|
|
strategy = "flat";
|
|
|
|
toc_format = [ "yy" "mm" "dd" "link" "title" ];
|
|
|
|
};
|
|
|
|
|
|
|
|
# Norg ripping a page from org-mode.
|
|
|
|
"core.ui.calendar" = { __empty = null; };
|
|
|
|
|
|
|
|
# Manage your note workspaces.
|
|
|
|
"core.dirman" = {
|
|
|
|
config.workspaces = {
|
|
|
|
personal = "~/library/notes";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2024-02-12 09:44:42 +00:00
|
|
|
# Install the common text markup tree-sitter grammars.
|
|
|
|
plugins.treesitter.grammarPackages = with pkgs.tree-sitter-grammars; [
|
|
|
|
tree-sitter-cooklang
|
|
|
|
tree-sitter-markdown
|
|
|
|
tree-sitter-org
|
|
|
|
tree-sitter-latex
|
|
|
|
]
|
2024-02-02 03:09:35 +00:00
|
|
|
# Install the tree-sitter parsers required for the core.defaults Neorg
|
|
|
|
# module.
|
2024-02-12 09:44:42 +00:00
|
|
|
++ lib.optionals (config.plugins.neorg.extraOptions ? load."core.defaults")
|
|
|
|
(with pkgs.tree-sitter-grammars; [
|
|
|
|
tree-sitter-norg
|
|
|
|
tree-sitter-norg-meta
|
|
|
|
]);
|
2024-02-02 03:09:35 +00:00
|
|
|
}
|