feat: introduce duck.nvim plugin with key mappings

This commit is contained in:
2024-09-25 06:17:49 -04:00
parent 7aee452413
commit 2c3ecca796
+32 -3
View File
@@ -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 = "<leader>uD",
group = "Duck",
icon = { icon = "󰇥", color = "yellow" },
})
add_km({
"<leader>uDd",
function()
require("duck").hatch()
end,
desc = "Hatch",
})
add_km({
"<leader>uDk",
function()
require("duck").cook()
end,
desc = "Cook",
})
add_km({
"<leader>uDa",
function()
require("duck").cook_all()
end,
desc = "Cook All",
})
end,
},
}