From 212bb9a66f12b5bfafa27643256e03dbbfb46d43 Mon Sep 17 00:00:00 2001 From: georgejean Date: Thu, 22 Jun 2023 18:46:20 +0200 Subject: [PATCH] Improved keys property for Comment.vim (#2144) --- lua/plugins/init.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lua/plugins/init.lua b/lua/plugins/init.lua index 51b137d..8d855f1 100644 --- a/lua/plugins/init.lua +++ b/lua/plugins/init.lua @@ -201,10 +201,10 @@ local default_plugins = { { "numToStr/Comment.nvim", keys = { - { "gcc", mode = "n" }, - { "gc", mode = "v" }, - { "gbc", mode = "n" }, - { "gb", mode = "v" }, + { "gcc", mode = "n" , desc = "Toggles the current line using linewise comment"}, + { "gc", mode = {"n","o","x"} , desc = "Toggles the region using linewise comment"}, + { "gbc", mode = "n" , desc = "Toggles the current line using blockwise comment"}, + { "gb", mode = {"n","o","x"} , desc = "Toggles the region using blockwise comment"}, }, init = function() require("core.utils").load_mappings "comment"