From 3b663d09c754bed9e85d3f8a40b4cec4ef5057d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20La=C3=ADn?= Date: Sat, 6 Jan 2024 20:29:40 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9A=99=EF=B8=8F=20config(nvim):=20add=20keym?= =?UTF-8?q?aps=20to=20commentbox=20extra?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../lua/plugins/extras/coding/annotation.lua | 2 +- .../lua/plugins/extras/ui/comment-box.lua | 24 ++++++++++++++++--- 2 files changed, 22 insertions(+), 4 deletions(-) diff --git a/.config/nvim/lua/plugins/extras/coding/annotation.lua b/.config/nvim/lua/plugins/extras/coding/annotation.lua index 91417fb7..4017a968 100644 --- a/.config/nvim/lua/plugins/extras/coding/annotation.lua +++ b/.config/nvim/lua/plugins/extras/coding/annotation.lua @@ -8,7 +8,7 @@ return { -- stylua: ignore keys = { { "ad", function() require("neogen").generate() end, desc = "Default Annotation" }, - { "ac", function() require("neogen").generate({ type = "class" }) end, desc = "Class" }, + { "aC", function() require("neogen").generate({ type = "class" }) end, desc = "Class" }, { "af", function() require("neogen").generate({ type = "func" }) end, desc = "Function" }, { "at", function() require("neogen").generate({ type = "type" }) end, desc = "Type" }, { "aF", function() require("neogen").generate({ type = "file" }) end, desc = "File" }, diff --git a/.config/nvim/lua/plugins/extras/ui/comment-box.lua b/.config/nvim/lua/plugins/extras/ui/comment-box.lua index 04b4fe6b..6ba62cf1 100644 --- a/.config/nvim/lua/plugins/extras/ui/comment-box.lua +++ b/.config/nvim/lua/plugins/extras/ui/comment-box.lua @@ -1,5 +1,23 @@ return { - "LudoPinelli/comment-box.nvim", - event = "LazyFile", - opts = {}, + { + "LudoPinelli/comment-box.nvim", + opts = {}, + keys = { + { "acb", "CBccbox", mode = { "n", "v" }, desc = "Comment Box" }, + { "act", "CBllline", mode = { "n", "v" }, desc = "Tiled Line" }, + { "acl", "CBline", desc = "Line" }, + { "acm", "CBllbox14", mode = { "n", "v" }, desc = "Marked" }, + { "acc", "CBcatalog", desc = "Catalog" }, + { "acd", "CBd", mode = { "n", "v" }, desc = "Delete Comment Style" }, + }, + }, + { + "folke/which-key.nvim", + opts = { + defaults = { + ["a"] = { name = " annotation/snippets" }, + ["ac"] = { name = "comments" }, + }, + }, + }, }