Files
dotfiles/.config/nvim/lua/plugins/comment.lua
T
cdanesi 9015900222 style: indents and spacing
add default configuration options
2024-11-29 17:56:10 -05:00

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,
},
}