fix: make key mapping's description to lazy load Comment.nvim coherent with the defaults (#2148)
This commit is contained in:
		
							parent
							
								
									4aa283119a
								
							
						
					
					
						commit
						286c951d7b
					
				@ -201,10 +201,12 @@ local default_plugins = {
 | 
				
			|||||||
  {
 | 
					  {
 | 
				
			||||||
    "numToStr/Comment.nvim",
 | 
					    "numToStr/Comment.nvim",
 | 
				
			||||||
    keys = {
 | 
					    keys = {
 | 
				
			||||||
      { "gcc", mode = "n", desc = "Toggles comment on current line" },
 | 
					      { "gcc", mode = "n", desc = "Comment toggle current line" },
 | 
				
			||||||
      { "gc", mode = { "n", "o", "x" }, desc = "Toggles comment on current line's region" },
 | 
					      { "gc", mode = { "n", "o" }, desc = "Comment toggle linewise" },
 | 
				
			||||||
      { "gbc", mode = "n", desc = "Toggles blockwise comment on current line" },
 | 
					      { "gc", mode = "x", desc = "Comment toggle linewise (visual)" },
 | 
				
			||||||
      { "gb", mode = { "n", "o", "x" }, desc = "Toggles blockwise comment on region" },
 | 
					      { "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()
 | 
					    init = function()
 | 
				
			||||||
      require("core.utils").load_mappings "comment"
 | 
					      require("core.utils").load_mappings "comment"
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user