/duck.nvim

A duck that waddles arbitrarily in neovim.

Primary LanguageLuaMIT LicenseMIT

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

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

Features

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