From 32c91fef8f5ab25b19b2fb76f331fb9facafb1ab Mon Sep 17 00:00:00 2001 From: Feliche-Demian Netliukh <51330172+Demianeen@users.noreply.github.com> Date: Sat, 28 Sep 2024 12:18:09 +0100 Subject: [PATCH] feat(duck): setup duck.nvim --- lua/lazyvim/plugins/extras/editor/duck.lua | 84 ++++++++++++++++++++++ 1 file changed, 84 insertions(+) create mode 100644 lua/lazyvim/plugins/extras/editor/duck.lua 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, + }, +}