Files
nvim/after/plugin/comment.lua

27 lines
382 B
Lua

local status_ok, comment = pcall(require, "Comment")
if not status_ok then
return
end
comment.setup {
toggler = {
line = 'gcc',
block = 'gbc',
},
opleader = {
line = 'gc',
block = 'gb',
},
extra = {
above = 'gcO',
below = 'gco',
eol = 'gcA',
},
mappings = {
basic = true,
extra = true,
},
pre_hook = nil,
post_hook = nil,
}