From 28fdaddcf8e566b5c83568b55621550348cabfea Mon Sep 17 00:00:00 2001 From: iGor milhit Date: Tue, 20 Aug 2024 16:22:51 +0200 Subject: [PATCH] plugins: add a keymap to display markdown TOC Co-Authored-by: iGor milhit --- lua/plugins/markdown/pandoc.lua | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lua/plugins/markdown/pandoc.lua b/lua/plugins/markdown/pandoc.lua index a219f47..7394d6f 100644 --- a/lua/plugins/markdown/pandoc.lua +++ b/lua/plugins/markdown/pandoc.lua @@ -28,6 +28,13 @@ vim.keymap.set('n', {desc = 'Toggle autoformat, to deactivate it'} ) +vim.keymap.set( + "n", + "tc", + "TOC", + { desc = "[vim-pandoc] Display the Table of Content"} +) + return { { "vim-pandoc/vim-pandoc",