summaryrefslogtreecommitdiff
path: root/.config/nvim/lua/plugins/comment.lua
blob: d41bad43606f6858a2b3a22a76ea94b67908f752 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
return {
    'numToStr/Comment.nvim',
    opts = {
        padding = true,
        sticky = true, -- keep cursor at it's position
        ignore = nil,

        toggler = { line = 'gcc', block = 'gbc' },
        opleader = { line = 'gc', block = 'gb' },
        extra = { above = 'gcO', below = 'gco', eol = 'gcA' },

        mappings = {
            basic = true,  -- `gcc` `gbc` `gc[count]{motion}` `gb[count]{motion}`
            extra = false, -- `gco`, `gcO`, `gcA`
        },
    },
}