Fix too long descriptions for Comment.nvim's key mapping and add g key to trigger which-key (#2145)
This commit is contained in:
parent
212bb9a66f
commit
4aa283119a
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user