summaryrefslogtreecommitdiff
path: root/fnl/config/comment.fnl
blob: 07bfc6dd3d5e093a21af0a13957a2e1b82c546f6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
;; Language aware commenting.

(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}})

{1 :numToStr/Comment.nvim :event :BufReadPost :opts opts}