users/foo-dogsquared/programs/nixvim: update note-taking setup

This commit is contained in:
Gabriel Arazas 2024-02-23 07:13:57 +08:00
parent 6b5dd4fe20
commit a2f7dbb86e
No known key found for this signature in database
GPG Key ID: ADE0C41DAB221FCC

View File

@ -1,4 +1,4 @@
{ config, lib, pkgs, ... }:
{ config, lib, pkgs, helpers, ... }:
{
# The main star of the show.
@ -8,30 +8,35 @@
plugins.neorg.extraOptions = {
lazy_loading = true;
load = {
load = lib.mkMerge [
{
# Pretty much required with tree-sitter integration and all.
"core.defaults" = { __empty = null; };
"core.defaults" = helpers.emptyTable;
# Conceal your blade (which is the markup, in which it is pretty sharp to
# look at).
"core.concealer" = { __empty = null; };
"core.concealer" = helpers.emptyTable;
# Dear diary...
"core.journal" = {
"core.journal".config = {
strategy = "flat";
toc_format = [ "yy" "mm" "dd" "link" "title" ];
};
# Norg ripping a page from org-mode.
"core.ui.calendar" = { __empty = null; };
"core.ui.calendar" = helpers.emptyTable;
# Manage your note workspaces.
"core.dirman" = {
config.workspaces = {
"core.dirman".config = {
workspaces = {
personal = "~/library/notes";
};
};
};
}
(lib.mkIf config.plugins.nvim-cmp.enable {
"core.completion".config.engine = "nvim-cmp";
})
];
};
# Install the common text markup tree-sitter grammars.
@ -47,7 +52,6 @@
pod
rst
tsx
typst
]
# Install the tree-sitter parsers required for the core.defaults Neorg
# module.