aboutsummaryrefslogtreecommitdiffstats
path: root/modules/home/soispha/conf/nvim/plgs/neorg
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-05-20 16:06:57 +0200
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-05-20 16:14:24 +0200
commit5156e1aae36a153be98b6832ab3ced7be2b2faee (patch)
tree3f050d3bc567af4c72f87e0925d21c3521436e45 /modules/home/soispha/conf/nvim/plgs/neorg
parentrefactor(hm/conf/zsh): Remove old zsh-prompt file (diff)
downloadnixos-config-5156e1aae36a153be98b6832ab3ced7be2b2faee.zip
refactor(hm): Rename to `modules/home`
Diffstat (limited to 'modules/home/soispha/conf/nvim/plgs/neorg')
-rw-r--r--modules/home/soispha/conf/nvim/plgs/neorg/default.nix56
1 files changed, 56 insertions, 0 deletions
diff --git a/modules/home/soispha/conf/nvim/plgs/neorg/default.nix b/modules/home/soispha/conf/nvim/plgs/neorg/default.nix
new file mode 100644
index 00000000..8d8015da
--- /dev/null
+++ b/modules/home/soispha/conf/nvim/plgs/neorg/default.nix
@@ -0,0 +1,56 @@
+{...}: {
+ programs.nixvim.plugins.neorg = {
+ enable = true;
+ lazyLoading = true;
+
+ modules = {
+ "core.defaults" = {
+ __empty = null;
+ };
+ "core.esupports.metagen".config = {
+ type = "auto";
+ };
+ "core.journal".config = {
+ workspace = "journal";
+ };
+ "core.keybinds".config = {
+ hook = {
+ __raw = ''
+ function(keybinds)
+ -- remap the looking glas to the same key, femaco is also mapped to.
+ keybinds.remap_event("norg", "n", "<space>cc", "core.looking-glass.magnify-code-block")
+
+ keybinds.remap_event("norg", "n", "<C-s>", "core.integrations.telescope.find_linkable")
+ keybinds.remap_event("norg", "i", "<C-i>", "core.integrations.telescope.insert_link")
+ end,
+ '';
+ };
+ };
+ "core.completion".config = {
+ engine = "nvim-cmp";
+ };
+ "core.concealer".config = {
+ __empty = null;
+ };
+ "core.dirman".config = {
+ workspaces = {
+ general = "~/repos/notes/general";
+ journal = "~/repos/notes/journal";
+ projects = "~/repos/notes/projects";
+ };
+ };
+ "core.export".config = {
+ __empty = null;
+ };
+ "core.integrations.telescope".config = {
+ __empty = null;
+ };
+
+ # TODO: Add this when the nvim version in nixpkgs is >= 0.10 <2023-08-29>
+ #
+ # "core.ui.calendar".config = {
+ # __empty = null;
+ # };
+ };
+ };
+}