From ced3ca5466f304f4cd4366cbda13a7359d9730da Mon Sep 17 00:00:00 2001 From: iGor milhit Date: Tue, 6 Aug 2024 19:40:11 +0200 Subject: [PATCH] pandoc: improve plugin config formatting Co-Authored-by: iGor milhit --- lua/custom/plugins/pandoc.lua | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) 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 { {