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