summaryrefslogtreecommitdiff
path: root/.config/nvim/lua/custom/plugins/markdown-toggle.lua
diff options
context:
space:
mode:
Diffstat (limited to '.config/nvim/lua/custom/plugins/markdown-toggle.lua')
-rw-r--r--.config/nvim/lua/custom/plugins/markdown-toggle.lua12
1 files changed, 12 insertions, 0 deletions
diff --git a/.config/nvim/lua/custom/plugins/markdown-toggle.lua b/.config/nvim/lua/custom/plugins/markdown-toggle.lua
new file mode 100644
index 0000000..39a932c
--- /dev/null
+++ b/.config/nvim/lua/custom/plugins/markdown-toggle.lua
@@ -0,0 +1,12 @@
+return {
+ 'roodolv/markdown-toggle.nvim',
+ event = 'VeryLazy',
+ config = function()
+ require('markdown-toggle').setup()
+ local opts = { silent = true, noremap = true }
+ local toggle = require('markdown-toggle')
+ vim.keymap.set({ 'n', 'x' }, '<leader>tu', toggle.list, opts)
+ vim.keymap.set({ 'n', 'x' }, '<leader>to', toggle.olist, opts)
+ vim.keymap.set({ 'n', 'x' }, '<leader>tm', toggle.checkbox, opts)
+ end,
+}