mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-31 16:57:55 +00:00
36 lines
865 B
Nix
36 lines
865 B
Nix
|
{ 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
|
||
|
]);
|
||
|
};
|
||
|
}
|