Improved keys property for Comment.vim (#2144)
This commit is contained in:
parent
11c839f870
commit
212bb9a66f
@ -201,10 +201,10 @@ local default_plugins = {
|
|||||||
{
|
{
|
||||||
"numToStr/Comment.nvim",
|
"numToStr/Comment.nvim",
|
||||||
keys = {
|
keys = {
|
||||||
{ "gcc", mode = "n" },
|
{ "gcc", mode = "n" , desc = "Toggles the current line using linewise comment"},
|
||||||
{ "gc", mode = "v" },
|
{ "gc", mode = {"n","o","x"} , desc = "Toggles the region using linewise comment"},
|
||||||
{ "gbc", mode = "n" },
|
{ "gbc", mode = "n" , desc = "Toggles the current line using blockwise comment"},
|
||||||
{ "gb", mode = "v" },
|
{ "gb", mode = {"n","o","x"} , desc = "Toggles the region using blockwise comment"},
|
||||||
},
|
},
|
||||||
init = function()
|
init = function()
|
||||||
require("core.utils").load_mappings "comment"
|
require("core.utils").load_mappings "comment"
|
||||||
|
Loading…
Reference in New Issue
Block a user