summaryrefslogtreecommitdiff
path: root/fnl/config/comment.fnl
diff options
context:
space:
mode:
Diffstat (limited to 'fnl/config/comment.fnl')
-rw-r--r--fnl/config/comment.fnl35
1 files changed, 17 insertions, 18 deletions
diff --git a/fnl/config/comment.fnl b/fnl/config/comment.fnl
index 6879df6..29b7871 100644
--- a/fnl/config/comment.fnl
+++ b/fnl/config/comment.fnl
@@ -1,21 +1,20 @@
;; Language aware commenting.
-(module config.comment {autoload {util config.util}})
-(def- opts {:toggler {;; Line-comment toggle keymap
- :line :mcc
- ;; Block-comment toggle keymap
- :block :mbc}
- ;; LHS of operator-pending mappings in NORMAL and VISUAL mode
- :opleader {;; Line-comment keymap
- :line :mc
- ;; Block-comment keymap
- :block :mb}
- ;; LHS of extra mappings
- :extra {;; Add comment on the line above
- :above :mcO
- ;; Add comment on the line below
- :below :mco
- ;; Add comment at the end of line
- :eol :mcA}})
+(local opts {:toggler {;; Line-comment toggle keymap
+ :line :mcc
+ ;; Block-comment toggle keymap
+ :block :mbc}
+ ;; LHS of operator-pending mappings in NORMAL and VISUAL mode
+ :opleader {;; Line-comment keymap
+ :line :mc
+ ;; Block-comment keymap
+ :block :mb}
+ ;; LHS of extra mappings
+ :extra {;; Add comment on the line above
+ :above :mcO
+ ;; Add comment on the line below
+ :below :mco
+ ;; Add comment at the end of line
+ :eol :mcA}})
-(util.setup :Comment opts)
+{1 :numToStr/Comment.nvim :event :BufReadPost :config opts}