diff options
| author | Kyren223 <ulmliad223@gmail.com> | 2024-09-20 00:54:02 +0300 |
|---|---|---|
| committer | Kyren223 <ulmliad223@gmail.com> | 2024-09-20 00:54:02 +0300 |
| commit | 54e90dfb990ff0d1f96d28c93e8101316b613995 (patch) | |
| tree | 5f4b13a2765ac39f936b3176a79b51dd255b020f /.config/nvim/lua/custom | |
| parent | e8c2a647c480f380665aa48514da5d1e041115b8 (diff) | |
feat: added a plugin to toggle markdown bullets/checkmarks
Diffstat (limited to '.config/nvim/lua/custom')
| -rw-r--r-- | .config/nvim/lua/custom/plugins/markdown-toggle.lua | 12 |
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, +} |
