9015900222
add default configuration options
30 lines
630 B
Lua
30 lines
630 B
Lua
return {
|
|
'numToStr/Comment.nvim',
|
|
event = { 'BufReadPre', 'BufNewFile' },
|
|
opts = {
|
|
padding = true,
|
|
sticky = true,
|
|
toggler = {
|
|
line = 'gcc',
|
|
block = 'gbc',
|
|
},
|
|
opleader = {
|
|
line = 'gc',
|
|
block = 'gb',
|
|
},
|
|
extra = {
|
|
-- Add comment on the line above
|
|
above = 'gcO',
|
|
-- Add comment on the line below
|
|
below = 'gco',
|
|
-- Add comment at the end of line
|
|
eol = 'gcA',
|
|
},
|
|
mappings = {
|
|
basic = true,
|
|
extra = true,
|
|
},
|
|
pre_hook = nil,
|
|
post_hook = nil,
|
|
},
|
|
} |