feat(bindings): add markdown scratchpads

This commit is contained in:
Fabrice Mouhartem 2024-11-29 11:43:01 +01:00
parent 49acc75e2a
commit 9a940a9ba4
Signed by: fmouhart
GPG Key ID: 2C5033B228CFE4E7

View File

@ -36,3 +36,12 @@ end
-- in :terminal esc exits edit mode
keymap('t', '<Esc>', '<C-\\><C-n>', { noremap = true, silent = true })
-- Markdown scratchpads
require('which-key').add({
{ "<leader>m", group = "[M]arkdown" },
{ "<leader>m_", hidden = "true" }
})
keymap('n', '<leader>mn', ':e ~/tmp/scratchpad.md<CR>', { desc = '[M]arkdown [N]ew', noremap = true, silent = true })
keymap('n', '<leader>me', ':e ~/tmp/scratchpad-fr.md<CR>', { desc = '[M]arkdown new Fr[e]nch', noremap = true, silent = true })