pandoc: improve plugin config formatting
Co-Authored-by: iGor milhit <igor@milhit.ch>
parent
6f5f205cca
commit
ced3ca5466
|
@ -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', '<leader>sw', '<cmd>call pandoc#formatting#UseSoftWraps()<CR>', {desc = 'Switch to softwrap'})
|
||||
vim.keymap.set('n', '<leader>hw', '<cmd>call pandoc#formatting#UseHardWraps()<CR>', {desc = 'Switch to hardwrap'})
|
||||
vim.keymap.set('n', '<leader>tw', '<cmd>call pandoc#formatting#ToggleAutoformat()<CR>', {desc = 'Toggle autoformat, to deactivate it'})
|
||||
vim.keymap.set('n',
|
||||
'<leader>sw',
|
||||
'<cmd>call pandoc#formatting#UseSoftWraps()<CR>',
|
||||
{desc = 'Switch to softwrap'}
|
||||
)
|
||||
vim.keymap.set('n',
|
||||
'<leader>hw',
|
||||
'<cmd>call pandoc#formatting#UseHardWraps()<CR>',
|
||||
{desc = 'Switch to hardwrap'}
|
||||
)
|
||||
vim.keymap.set('n',
|
||||
'<leader>tw',
|
||||
'<cmd>call pandoc#formatting#ToggleAutoformat()<CR>',
|
||||
{desc = 'Toggle autoformat, to deactivate it'}
|
||||
)
|
||||
|
||||
return {
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue