diff --git a/config/default.nix b/config/default.nix index 6965af1..8e40133 100644 --- a/config/default.nix +++ b/config/default.nix @@ -20,6 +20,7 @@ ./plugins/gitsigns.nix ./plugins/which-key.nix ./plugins/telescope.nix + ./plugins/neorg.nix ./plugins/lsp/lsp.nix diff --git a/config/plugins/neorg.nix b/config/plugins/neorg.nix new file mode 100644 index 0000000..79246fb --- /dev/null +++ b/config/plugins/neorg.nix @@ -0,0 +1,48 @@ +{ + plugins = { + neorg = { + enable = true; + modules = { + # "core.defaults" = { __empty = null; }; # -- Loads default behaviour + # "core.summary" = { __empty = null; }; + # "core.defaults" = { __empty = null; }; + # "core.export" = { __empty = null; }; + # "core.export.markdown" = { __empty = null; }; + "core.defaults" = {}; # -- Loads default behaviour + "core.summary" = {}; + "core.defaults" = {}; + "core.export" = {}; + "core.export.markdown" = {}; + "core.concealer" = { + config = { + folds = false; + }; + }; #-- Adds pretty icons to your documents + "core.dirman" = { + config = { + workspaces = { + n = "~/neorg/notes"; + e = "~/neorg/english"; + l = "~/neorg/letter"; + g = "~/neorg/grammar"; + p = "~/neorg/perl"; + m = "~/neorg/misc"; + nvim = "~/.config/nvim/NeorgNvimNotes"; + }; + default_workspace = "m"; + }; + }; + "core.keybinds" = { + config = { + hook = function(keybinds) + # -- unmap Alt-Enter to "core.itero.next-iteration", "" + keybinds.unmap("norg", "i", "") + # -- map Shift-Enter to "core.itero.next-iteration", "" + keybinds.remap_event("norg", "i", "", "core.itero.next-iteration", "") + end; + }; + }; + }; + }; + }; +}