From 54e90dfb990ff0d1f96d28c93e8101316b613995 Mon Sep 17 00:00:00 2001 From: Kyren223 Date: Fri, 20 Sep 2024 00:54:02 +0300 Subject: feat: added a plugin to toggle markdown bullets/checkmarks --- .config/nvim/lua/custom/plugins/markdown-toggle.lua | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 .config/nvim/lua/custom/plugins/markdown-toggle.lua (limited to '.config/nvim/lua/custom/plugins') 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' }, 'tu', toggle.list, opts) + vim.keymap.set({ 'n', 'x' }, 'to', toggle.olist, opts) + vim.keymap.set({ 'n', 'x' }, 'tm', toggle.checkbox, opts) + end, +} -- cgit v1.3.1