Skip to content
Projects

About

A duck that waddles randomly in Neovim.

Developer Tools

How these counts are measured

What you can do

  • can release multiple ducks.
  • does not load on startup.
  • Light weight, <100 LOC

Measured star growth

in 24h
0
in 7 days
0
in 15 days
+1
in 1 month
Collecting history

Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.

README.md

Original

duck.nvim

A duck that waddles between your codes

Peek 2021-11-18 15-43

Coding? release the duck.
bored? release the duck.
not bored? release the duck.

Install and Configure

{
    '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, {})
        vim.keymap.set('n', '<leader>da', function() require("duck").cook_all() 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

Features

  • can release multiple ducks.
  • does not load on startup.
  • Light weight, <100 LOC
  • Its a duck

Explore related projects

Loading…