diff --git a/lua/lazyvim/plugins/extras/editor/duck.lua b/lua/lazyvim/plugins/extras/editor/duck.lua new file mode 100644 index 00000000..b21007dc --- /dev/null +++ b/lua/lazyvim/plugins/extras/editor/duck.lua @@ -0,0 +1,84 @@ +return { + { + "tamton-aquib/duck.nvim", + keys = { + { + "uGdd", + function() + require("duck").hatch() + end, + desc = "Hatch a duck", + }, + { + "uGdD", + function() + require("duck").hatch() + require("duck").hatch() + require("duck").hatch() + require("duck").hatch() + require("duck").hatch("🦆", 10) + end, + desc = "Hatch ducks", + }, + { + "uGdc", + function() + require("duck").hatch("🐈") + end, + desc = "Catch a cat", + }, + { + "uGdC", + function() + require("duck").hatch("🐈") + require("duck").hatch("🐈") + require("duck").hatch("🐈") + require("duck").hatch("🐈") + require("duck").hatch("🐈", 0.75) + end, + desc = "Catch more cats", + }, + { + "uGdr", + function() + require("duck").hatch("🦀") + end, + desc = "Get some rust", + }, + { + "uGdR", + function() + require("duck").hatch("🦀") + require("duck").hatch("🦀") + require("duck").hatch("🦀") + require("duck").hatch("🦀") + require("duck").hatch("🦀", 12) + end, + desc = "Unleash Rustaceans", + }, + { + "uGdk", + function() + require("duck").cook() + end, + desc = "Cook a duck", + }, + { + "uGda", + function() + require("duck").cook_all() + end, + desc = "Cook ’em all", + }, + }, + }, + { + "folke/which-key.nvim", + opts = function(_, _) + local wk = require("which-key") + wk.add({ + { "uGd", group = "Duck" }, + }) + end, + }, +}