From 9a940a9ba47b2a3dc8d3399ad83923bf6d15a1dc Mon Sep 17 00:00:00 2001 From: Fabrice Mouhartem Date: Fri, 29 Nov 2024 11:43:01 +0100 Subject: [PATCH] feat(bindings): add markdown scratchpads --- lua/mappings.lua | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lua/mappings.lua b/lua/mappings.lua index 69fe1ee..62b3b51 100644 --- a/lua/mappings.lua +++ b/lua/mappings.lua @@ -36,3 +36,12 @@ end -- in :terminal esc exits edit mode keymap('t', '', '', { noremap = true, silent = true }) + +-- Markdown scratchpads +require('which-key').add({ + { "m", group = "[M]arkdown" }, + { "m_", hidden = "true" } +}) + +keymap('n', 'mn', ':e ~/tmp/scratchpad.md', { desc = '[M]arkdown [N]ew', noremap = true, silent = true }) +keymap('n', 'me', ':e ~/tmp/scratchpad-fr.md', { desc = '[M]arkdown new Fr[e]nch', noremap = true, silent = true })