From 47a8736278d246769069dd1013560f1a122b0316 Mon Sep 17 00:00:00 2001 From: Folke Lemaitre Date: Tue, 28 May 2024 07:39:26 +0200 Subject: [PATCH] feat(keymaps): add comment above/below current line with gco/gcO --- lua/lazyvim/config/keymaps.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lua/lazyvim/config/keymaps.lua b/lua/lazyvim/config/keymaps.lua index 86552999..a6ac8f3c 100644 --- a/lua/lazyvim/config/keymaps.lua +++ b/lua/lazyvim/config/keymaps.lua @@ -75,6 +75,10 @@ map("n", "K", "norm! K", { desc = "Keywordprg" }) map("v", "<", "", ">gv") +-- commenting +map("n", "gco", "oVcxnormal gccfxa", { desc = "Add Comment Below" }) +map("n", "gcO", "OVcxnormal gccfxa", { desc = "Add Comment Above" }) + -- lazy map("n", "l", "Lazy", { desc = "Lazy" })