Add markdown preview shortcut
+ description to other bindings
This commit is contained in:
parent
8cd994ba57
commit
4edd7015ca
@ -14,9 +14,10 @@ vim.api.nvim_create_autocmd({ "BufEnter", "BufWinEnter" }, {
|
|||||||
vim.o.formatoptions = "qj"
|
vim.o.formatoptions = "qj"
|
||||||
-- email commands: my/msy to paste the html inside the clipboard
|
-- email commands: my/msy to paste the html inside the clipboard
|
||||||
vim.keymap.set('', '<LocalLeader>msy', ':w !pandoc -f markdown+emoji -t html5 -s | wl-copy<CR><CR>',
|
vim.keymap.set('', '<LocalLeader>msy', ':w !pandoc -f markdown+emoji -t html5 -s | wl-copy<CR><CR>',
|
||||||
{ noremap = true, silent = true })
|
{ noremap = true, silent = true, desc = "[M]arkdown to [S]ingle page [Y]ank" })
|
||||||
vim.keymap.set('', '<LocalLeader>my', ':w !pandoc -f markdown+emoji --wrap=none -t html5 | wl-copy<CR><CR>',
|
vim.keymap.set('', '<LocalLeader>my', ':w !pandoc -f markdown+emoji --wrap=none -t html5 | wl-copy<CR><CR>',
|
||||||
{ noremap = true, silent = true })
|
{ noremap = true, silent = true, desc = "[M]arkdown to HTML [Y]ank" })
|
||||||
|
vim.keymap.set('', '<LocalLeader>mp', '<Plug>MarkdownPreviewToggle', { noremap = true, silent = true, desc = "[M]arkdown [Preview]" })
|
||||||
end
|
end
|
||||||
})
|
})
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user