summaryrefslogtreecommitdiff
path: root/.config/nvim/lua/custom/plugins/markdown-toggle.lua
blob: 39a932c6579b7016f6379155cfcca9b66d347721 (plain)
1
2
3
4
5
6
7
8
9
10
11
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,
}