mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-31 04:58:01 +00:00
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:
parent
e26c137698
commit
53783fc910
@ -12,7 +12,6 @@
|
||||
fuzzy-finder.enable = true;
|
||||
debugging.enable = true;
|
||||
desktop-utils.enable = true;
|
||||
note-taking.enable = true;
|
||||
};
|
||||
|
||||
# Some general settings.
|
||||
|
@ -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
|
||||
|
35
configs/nixvim/fiesta/modules/setups/note-taking.nix
Normal file
35
configs/nixvim/fiesta/modules/setups/note-taking.nix
Normal 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
|
||||
]);
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user