summaryrefslogtreecommitdiffstats
path: root/after/plugin/comment.lua
blob: e95b823b8ad4766428506d9844748faa7b8a1c45 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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,
}