feat(bindings): add markdown scratchpads
This commit is contained in:
parent
49acc75e2a
commit
9a940a9ba4
@ -36,3 +36,12 @@ end
|
|||||||
|
|
||||||
-- in :terminal esc exits edit mode
|
-- in :terminal esc exits edit mode
|
||||||
keymap('t', '<Esc>', '<C-\\><C-n>', { noremap = true, silent = true })
|
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 })
|
||||||
|
Loading…
Reference in New Issue
Block a user