From 00009883fb7c7f499125fa5779f09fdccfc5b109 Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Fri, 6 Jan 2023 15:15:29 +0100 Subject: Update default keymaps for comments --- fnl/config/comment.fnl | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'fnl/config') 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) -- cgit v1.2.3-70-g09d2