From bbc47b6683d5ef511e6b28e622fd8c3243288c14 Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Sat, 26 Feb 2022 15:56:19 +0100 Subject: [PATCH] home: vim: document 'commentary' mappings By using 'which-key'. --- home/vim/after/plugin/mappings/commentary.vim | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 home/vim/after/plugin/mappings/commentary.vim diff --git a/home/vim/after/plugin/mappings/commentary.vim b/home/vim/after/plugin/mappings/commentary.vim new file mode 100644 index 0000000..219d661 --- /dev/null +++ b/home/vim/after/plugin/mappings/commentary.vim @@ -0,0 +1,12 @@ +lua << EOF +local wk = require("which-key") + +local keys = { + name = "Comment/uncomment", + c = "Current line", + u = "Uncomment the current and adjacent commented lines", + ["gc"] = "Uncomment the current and adjacent commented lines", +} + +wk.register(keys, { prefix = "gc" }) +EOF