summaryrefslogtreecommitdiff
path: root/.config/nvim/lua/plugins/markdown-toggle.lua
diff options
context:
space:
mode:
authorKyren223 <Kyren223@proton.me>2025-04-24 11:36:39 +0300
committerKyren223 <Kyren223@proton.me>2025-04-24 11:36:39 +0300
commit6bef8f32b19778fdfe52f0eb39719425508dcc7b (patch)
treef293141ed7e8676b76bb06c07a0fa9472b10e2ac /.config/nvim/lua/plugins/markdown-toggle.lua
parentdbd9a6fdd0c44e26b200fb706aacd120a2e09c47 (diff)
Refactored nvim config to make it easier and less insanely nested
Diffstat (limited to '.config/nvim/lua/plugins/markdown-toggle.lua')
-rw-r--r--.config/nvim/lua/plugins/markdown-toggle.lua12
1 files changed, 12 insertions, 0 deletions
diff --git a/.config/nvim/lua/plugins/markdown-toggle.lua b/.config/nvim/lua/plugins/markdown-toggle.lua
new file mode 100644
index 0000000..39a932c
--- /dev/null
+++ b/.config/nvim/lua/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,
+}