diff options
Diffstat (limited to 'fnl/config')
-rw-r--r-- | fnl/config/comment.fnl | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/fnl/config/comment.fnl b/fnl/config/comment.fnl index 3a3f1fb..6879df6 100644 --- a/fnl/config/comment.fnl +++ b/fnl/config/comment.fnl @@ -1,6 +1,21 @@ ;; Language aware commenting. (module config.comment {autoload {util config.util}}) -(def- opts {}) +(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}}) (util.setup :Comment opts) |