diff --git a/lua/custom/plugins/pandoc.lua b/lua/custom/plugins/pandoc.lua index 5c1956e..819f02c 100644 --- a/lua/custom/plugins/pandoc.lua +++ b/lua/custom/plugins/pandoc.lua @@ -8,9 +8,21 @@ vim.cmd([[ let g:mkdp_filetypes = ['markdown', 'pandoc', 'pandoc.markdown'] ]]) vim.cmd([[ let g:pandoc#formatting#mode="hA" ]]) -- Keymaps to switch to soft or hardwarp, or to toggle. -vim.keymap.set('n', 'sw', 'call pandoc#formatting#UseSoftWraps()', {desc = 'Switch to softwrap'}) -vim.keymap.set('n', 'hw', 'call pandoc#formatting#UseHardWraps()', {desc = 'Switch to hardwrap'}) -vim.keymap.set('n', 'tw', 'call pandoc#formatting#ToggleAutoformat()', {desc = 'Toggle autoformat, to deactivate it'}) +vim.keymap.set('n', + 'sw', + 'call pandoc#formatting#UseSoftWraps()', + {desc = 'Switch to softwrap'} +) +vim.keymap.set('n', + 'hw', + 'call pandoc#formatting#UseHardWraps()', + {desc = 'Switch to hardwrap'} +) +vim.keymap.set('n', + 'tw', + 'call pandoc#formatting#ToggleAutoformat()', + {desc = 'Toggle autoformat, to deactivate it'} +) return { {