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

This commit is contained in:
georgejean 2023-06-23 01:29:57 +02:00 committed by GitHub
parent 212bb9a66f
commit 4aa283119a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 5 deletions

View File

@ -201,10 +201,10 @@ local default_plugins = {
{
"numToStr/Comment.nvim",
keys = {
{ "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"},
{ "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" },
},
init = function()
require("core.utils").load_mappings "comment"
@ -256,7 +256,7 @@ local default_plugins = {
-- Only load whichkey after all the gui
{
"folke/which-key.nvim",
keys = { "<leader>", '"', "'", "`", "c", "v" },
keys = { "<leader>", '"', "'", "`", "c", "v", "g" },
init = function()
require("core.utils").load_mappings "whichkey"
end,