add and test neorg
This commit is contained in:
parent
28f59cdbad
commit
c24150153f
2 changed files with 49 additions and 0 deletions
|
|
@ -20,6 +20,7 @@
|
||||||
./plugins/gitsigns.nix
|
./plugins/gitsigns.nix
|
||||||
./plugins/which-key.nix
|
./plugins/which-key.nix
|
||||||
./plugins/telescope.nix
|
./plugins/telescope.nix
|
||||||
|
./plugins/neorg.nix
|
||||||
|
|
||||||
./plugins/lsp/lsp.nix
|
./plugins/lsp/lsp.nix
|
||||||
|
|
||||||
|
|
|
||||||
48
config/plugins/neorg.nix
Normal file
48
config/plugins/neorg.nix
Normal file
|
|
@ -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", "<CR>"
|
||||||
|
keybinds.unmap("norg", "i", "<M-CR>")
|
||||||
|
# -- map Shift-Enter to "core.itero.next-iteration", "<CR>"
|
||||||
|
keybinds.remap_event("norg", "i", "<S-CR>", "core.itero.next-iteration", "<CR>")
|
||||||
|
end;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue