Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/tamton-aquib/duck.nvim

A duck that waddles arbitrarily in neovim.
https://github.com/tamton-aquib/duck.nvim

lua neovim neovim-plugin

Last synced: 3 days ago
JSON representation

A duck that waddles arbitrarily in neovim.

Awesome Lists containing this project

README

        

# duck.nvim

A duck that waddles between your codes

![Peek 2021-11-18 15-43](https://user-images.githubusercontent.com/77913442/142396581-787616c0-92c9-4ddd-aa15-7bd218f6011b.gif)

> Coding? release the duck.

> bored? release the duck.

> not bored? release the duck.

### Install and Configure

```lua
{
'tamton-aquib/duck.nvim',
config = function()
vim.keymap.set('n', 'dd', function() require("duck").hatch() end, {})
vim.keymap.set('n', 'dk', function() require("duck").cook() end, {})
vim.keymap.set('n', 'da', function() require("duck").cook_all() end, {})
end
}
```

To set custom character:
```lua
nnoremap dd :lua require("duck").hatch("āļž")
```
> popular candidates: đŸĻ† āļž đŸĻ€ 🐈 🐎 đŸĻ– 🐤

You can also specify how fast a duck moves (measured in steps per second):
```lua
vim.keymap.set('n', 'dd', function() require("duck").hatch("đŸĻ†", 10) end, {}) -- A pretty fast duck
vim.keymap.set('n', '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