mirror of
https://github.com/LazyVim/LazyVim.git
synced 2026-07-25 14:01:06 +00:00
feat(duck): setup duck.nvim
This commit is contained in:
parent
a1c3ec4cd4
commit
32c91fef8f
1 changed files with 84 additions and 0 deletions
84
lua/lazyvim/plugins/extras/editor/duck.lua
Normal file
84
lua/lazyvim/plugins/extras/editor/duck.lua
Normal file
|
|
@ -0,0 +1,84 @@
|
|||
return {
|
||||
{
|
||||
"tamton-aquib/duck.nvim",
|
||||
keys = {
|
||||
{
|
||||
"<leader>uGdd",
|
||||
function()
|
||||
require("duck").hatch()
|
||||
end,
|
||||
desc = "Hatch a duck",
|
||||
},
|
||||
{
|
||||
"<leader>uGdD",
|
||||
function()
|
||||
require("duck").hatch()
|
||||
require("duck").hatch()
|
||||
require("duck").hatch()
|
||||
require("duck").hatch()
|
||||
require("duck").hatch("🦆", 10)
|
||||
end,
|
||||
desc = "Hatch ducks",
|
||||
},
|
||||
{
|
||||
"<leader>uGdc",
|
||||
function()
|
||||
require("duck").hatch("🐈")
|
||||
end,
|
||||
desc = "Catch a cat",
|
||||
},
|
||||
{
|
||||
"<leader>uGdC",
|
||||
function()
|
||||
require("duck").hatch("🐈")
|
||||
require("duck").hatch("🐈")
|
||||
require("duck").hatch("🐈")
|
||||
require("duck").hatch("🐈")
|
||||
require("duck").hatch("🐈", 0.75)
|
||||
end,
|
||||
desc = "Catch more cats",
|
||||
},
|
||||
{
|
||||
"<leader>uGdr",
|
||||
function()
|
||||
require("duck").hatch("🦀")
|
||||
end,
|
||||
desc = "Get some rust",
|
||||
},
|
||||
{
|
||||
"<leader>uGdR",
|
||||
function()
|
||||
require("duck").hatch("🦀")
|
||||
require("duck").hatch("🦀")
|
||||
require("duck").hatch("🦀")
|
||||
require("duck").hatch("🦀")
|
||||
require("duck").hatch("🦀", 12)
|
||||
end,
|
||||
desc = "Unleash Rustaceans",
|
||||
},
|
||||
{
|
||||
"<leader>uGdk",
|
||||
function()
|
||||
require("duck").cook()
|
||||
end,
|
||||
desc = "Cook a duck",
|
||||
},
|
||||
{
|
||||
"<leader>uGda",
|
||||
function()
|
||||
require("duck").cook_all()
|
||||
end,
|
||||
desc = "Cook ’em all",
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
"folke/which-key.nvim",
|
||||
opts = function(_, _)
|
||||
local wk = require("which-key")
|
||||
wk.add({
|
||||
{ "<leader>uGd", group = "Duck" },
|
||||
})
|
||||
end,
|
||||
},
|
||||
}
|
||||
Loading…
Add table
Reference in a new issue