summaryrefslogtreecommitdiffstats
path: root/after/plugin/comment.lua
diff options
context:
space:
mode:
Diffstat (limited to 'after/plugin/comment.lua')
-rw-r--r--after/plugin/comment.lua26
1 files changed, 26 insertions, 0 deletions
diff --git a/after/plugin/comment.lua b/after/plugin/comment.lua
new file mode 100644
index 0000000..e95b823
--- /dev/null
+++ b/after/plugin/comment.lua
@@ -0,0 +1,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,
+}