A duck that waddles between your codes
Coding? release the duck.
bored? release the duck.
not bored? release the duck.
use {
'tamton-aquib/duck.nvim',
config = function()
vim.keymap.set('n', '<leader>dd', function() require("duck").hatch() end, {})
vim.keymap.set('n', '<leader>dk', function() require("duck").cook() end, {})
end
}
To set custom character:
nnoremap <leader>dd :lua require("duck").hatch("ඞ")<CR>
popular candidates: 🦆 ඞ 🦀 🐈 🐎 🦖 🐤
You can also specify how fast a duck moves (measured in steps per second):
vim.keymap.set('n', '<leader>dd', function() require("duck").hatch("🦆", 10) end, {}) -- A pretty fast duck
vim.keymap.set('n', '<leader>dc', function() require("duck").hatch("🐈", 0.75) end, {}) -- Quite a mellow cat
- can release multiple ducks.
- does not load on startup.
- Light weight, approximately 50LOC
- Its a duck