nixvimConfigs/fiesta/setups/note-taking: init

Though, in practice, this module may not be used and set it per-environment
for its specificities.
This commit is contained in:
Gabriel Arazas 2024-02-02 10:53:35 +08:00
parent e26c137698
commit 53783fc910
No known key found for this signature in database
GPG Key ID: ADE0C41DAB221FCC
3 changed files with 36 additions and 1 deletions

View File

@ -12,7 +12,6 @@
fuzzy-finder.enable = true;
debugging.enable = true;
desktop-utils.enable = true;
note-taking.enable = true;
};
# Some general settings.

View File

@ -4,6 +4,7 @@
./setups/debugging.nix
./setups/desktop-utils.nix
./setups/fuzzy-finder.nix
./setups/note-taking.nix
./setups/snippets
./setups/treesitter.nix
./setups/ui.nix

View File

@ -0,0 +1,35 @@
{ config, lib, pkgs, ... }:
let
nixvimCfg = config.nixvimConfigs.fiesta;
cfg = nixvimCfg.setups.note-taking;
in
{
options.nixvimConfigs.fiesta.setups.note-taking.enable =
lib.mkEnableOption "basic note-taking setup";
config = lib.mkIf cfg.enable {
# The main star of the show.
plugins.neorg.enable = true;
# Set it up, set it up.
plugins.neorg.extraOptions = {
lazy_loading = true;
# The basic bare essentials.
load = {
"core.defaults" = { __empty = null; };
"core.concealer" = { __empty = null; };
};
};
# Install the tree-sitter parsers.
plugins.treesitter.grammarPackages =
lib.mkIf
(config.plugins.neorg.extraOptions ? load."core.defaults")
(with pkgs.tree-sitter-grammars; [
tree-sitter-norg
tree-sitter-norg-meta
]);
};
}