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 })