From 286c951d7b1f4531c8f40873a3846f40a3503e33 Mon Sep 17 00:00:00 2001 From: georgejean Date: Sat, 24 Jun 2023 03:19:07 +0200 Subject: [PATCH] fix: make key mapping's description to lazy load Comment.nvim coherent with the defaults (#2148) --- lua/plugins/init.lua | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/lua/plugins/init.lua b/lua/plugins/init.lua index 16a9ca1..60dab65 100644 --- a/lua/plugins/init.lua +++ b/lua/plugins/init.lua @@ -201,10 +201,12 @@ local default_plugins = { { "numToStr/Comment.nvim", keys = { - { "gcc", mode = "n", desc = "Toggles comment on current line" }, - { "gc", mode = { "n", "o", "x" }, desc = "Toggles comment on current line's region" }, - { "gbc", mode = "n", desc = "Toggles blockwise comment on current line" }, - { "gb", mode = { "n", "o", "x" }, desc = "Toggles blockwise comment on region" }, + { "gcc", mode = "n", desc = "Comment toggle current line" }, + { "gc", mode = { "n", "o" }, desc = "Comment toggle linewise" }, + { "gc", mode = "x", desc = "Comment toggle linewise (visual)" }, + { "gbc", mode = "n", desc = "Comment toggle current block" }, + { "gb", mode = { "n", "o" }, desc = "Comment toggle blockwise" }, + { "gb", mode = "x", desc = "Comment toggle blockwise (visual)" }, }, init = function() require("core.utils").load_mappings "comment"