feat: introduce duck.nvim plugin with key mappings
This commit is contained in:
+32
-3
@@ -98,9 +98,6 @@ return {
|
|||||||
{ -- Comment Box
|
{ -- Comment Box
|
||||||
"LudoPinelli/comment-box.nvim",
|
"LudoPinelli/comment-box.nvim",
|
||||||
},
|
},
|
||||||
{ -- vim-visual-multi
|
|
||||||
"mg979/vim-visual-multi",
|
|
||||||
},
|
|
||||||
{ -- Todo Comments
|
{ -- Todo Comments
|
||||||
"folke/todo-comments.nvim",
|
"folke/todo-comments.nvim",
|
||||||
opts = data.types.todo.opts,
|
opts = data.types.todo.opts,
|
||||||
@@ -154,4 +151,36 @@ return {
|
|||||||
optional = true,
|
optional = true,
|
||||||
opts = data.types.noice,
|
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,
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user