diff --git a/lua/autocommands.lua b/lua/autocommands.lua index 8378b50..65ff3f8 100644 --- a/lua/autocommands.lua +++ b/lua/autocommands.lua @@ -5,6 +5,10 @@ vim.api.nvim_create_autocmd({"BufEnter", "BufWinEnter"}, { vim.o.filetype = 'pandoc' vim.o.spell = true vim.o.spelllang = 'en' + vim.o.formatoptions = "qj" + -- email commands: my/msy to paste the html inside the clipboard + vim.keymap.set('', 'msy', ':w !pandoc -f markdown+emoji -t html5 -s | wl-copy', { noremap = true, silent = true }) + vim.keymap.set('', 'my', ':w !pandoc -f markdown+emoji --wrap=none -t html5 | wl-copy', { noremap = true, silent = true }) end })