Fix too long descriptions for Comment.nvim's key mapping and add g key to trigger which-key (#2145)

pull/2148/head
georgejean 12 months ago committed by GitHub
parent 212bb9a66f
commit 4aa283119a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -201,10 +201,10 @@ local default_plugins = {
{ {
"numToStr/Comment.nvim", "numToStr/Comment.nvim",
keys = { keys = {
{ "gcc", mode = "n" , desc = "Toggles the current line using linewise comment"}, { "gcc", mode = "n", desc = "Toggles comment on current line" },
{ "gc", mode = {"n","o","x"} , desc = "Toggles the region using linewise comment"}, { "gc", mode = { "n", "o", "x" }, desc = "Toggles comment on current line's region" },
{ "gbc", mode = "n" , desc = "Toggles the current line using blockwise comment"}, { "gbc", mode = "n", desc = "Toggles blockwise comment on current line" },
{ "gb", mode = {"n","o","x"} , desc = "Toggles the region using blockwise comment"}, { "gb", mode = { "n", "o", "x" }, desc = "Toggles blockwise comment on region" },
}, },
init = function() init = function()
require("core.utils").load_mappings "comment" require("core.utils").load_mappings "comment"
@ -256,7 +256,7 @@ local default_plugins = {
-- Only load whichkey after all the gui -- Only load whichkey after all the gui
{ {
"folke/which-key.nvim", "folke/which-key.nvim",
keys = { "<leader>", '"', "'", "`", "c", "v" }, keys = { "<leader>", '"', "'", "`", "c", "v", "g" },
init = function() init = function()
require("core.utils").load_mappings "whichkey" require("core.utils").load_mappings "whichkey"
end, end,

Loading…
Cancel
Save