modified some neorg config

This commit is contained in:
megit 2024-04-09 00:38:52 +08:00
parent d053356b56
commit 5f4786b782

View file

@ -1,3 +1,4 @@
# vim: ts=4:sts=0:sw=0:noet
{
helpers
, ... }:
@ -24,22 +25,20 @@ helpers
g = "~/neorg/grammar";
p = "~/neorg/perl";
m = "~/neorg/misc";
nvim = "~/.config/nvim/NeorgNvimNotes";
# nvim = "~/.config/nvim/NeorgNvimNotes";
};
default_workspace = "m";
};
};
"core.keybinds" = {
# config = {
# hook.__raw = ''
# 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,
# '';
# };
config = {
hook.__raw = ''
function(keybinds)
keybinds.unmap("norg", "i", "<M-CR>")
keybinds.remap_event("norg", "i", "<S-CR>", "core.itero.next-iteration", "<CR>")
end
'';
};
};
};
};