From 2c3ecca796a3326127d0949783427a5fa4d2be0f Mon Sep 17 00:00:00 2001 From: rootiest Date: Wed, 25 Sep 2024 06:17:49 -0400 Subject: [PATCH] feat: introduce duck.nvim plugin with key mappings --- lua/plugins/editor.lua | 35 ++++++++++++++++++++++++++++++++--- 1 file changed, 32 insertions(+), 3 deletions(-) diff --git a/lua/plugins/editor.lua b/lua/plugins/editor.lua index 9055b3c..619ee1c 100644 --- a/lua/plugins/editor.lua +++ b/lua/plugins/editor.lua @@ -98,9 +98,6 @@ return { { -- Comment Box "LudoPinelli/comment-box.nvim", }, - { -- vim-visual-multi - "mg979/vim-visual-multi", - }, { -- Todo Comments "folke/todo-comments.nvim", opts = data.types.todo.opts, @@ -154,4 +151,36 @@ return { optional = true, opts = data.types.noice, }, + { -- Duck + "tamton-aquib/duck.nvim", + config = function() + local add_km = data.func.add_keymap + add_km({ + lhs = "uD", + group = "Duck", + icon = { icon = "󰇥", color = "yellow" }, + }) + add_km({ + "uDd", + function() + require("duck").hatch() + end, + desc = "Hatch", + }) + add_km({ + "uDk", + function() + require("duck").cook() + end, + desc = "Cook", + }) + add_km({ + "uDa", + function() + require("duck").cook_all() + end, + desc = "Cook All", + }) + end, + }, }