diff options
author | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2023-01-06 15:15:29 +0100 |
---|---|---|
committer | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2023-01-06 15:15:29 +0100 |
commit | 00009883fb7c7f499125fa5779f09fdccfc5b109 (patch) | |
tree | 4e566c012a3a3247c3a527bdaca8421a6aed6516 /fnl | |
parent | 31fa2404167c31fe610d4fdc9efda03785e04ecc (diff) |
Update default keymaps for comments
Diffstat (limited to 'fnl')
-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) |