Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/delphinus/nekokak.nvim
Blazingly fast implementation for NEKOKAK
https://github.com/delphinus/nekokak.nvim
lua neovim
Last synced: 26 minutes ago
JSON representation
Blazingly fast implementation for NEKOKAK
- Host: GitHub
- URL: https://github.com/delphinus/nekokak.nvim
- Owner: delphinus
- Created: 2022-06-07T09:09:08.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-07-07T05:52:46.000Z (over 2 years ago)
- Last Synced: 2024-11-02T03:32:09.641Z (12 days ago)
- Topics: lua, neovim
- Language: Lua
- Homepage:
- Size: 2 MB
- Stars: 6
- Watchers: 4
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-blazingly-fast - nekokak.nvim - Blazingly fast implementation for NEKOKAK (Lua)
README
# nekokak.nvim
Blazingly fast implementation for NEKOKAK with Neovim Lua.
https://user-images.githubusercontent.com/1239245/172523289-7ef6f617-fc36-45f8-96bd-274e6f77e4aa.mp4
## What's this?
This is a fork of [mattn/vim-nekokak][] implemented by Lua.
[mattn/vim-nekokak]: https://github.com/mattn/vim-nekokak
## Installation
### for [packer.nvim][]
```lua
use {
"delphinus/nekokak.nvim",
config = function()
require "nekokak".setup {}
end,
}
```[packer.nvim]: https://github.com/wbthomason/packer.nvim
### for builtin [packages][]
```sh
git clone https://github.com/delphinus/nekokak.nvim \
$HOME/.local/share/nvim/site/pack/foobar/start/nekokak.nvim
``````lua
-- And in your init.lua……
require "nekokak".setup {}
```[packages]: https://neovim.io/doc/user/repeat.html#packages
## Commands
### `Nekokak`
```vim
:Nekokak
```You see him.
```vim
:Nekokak { wait_ms = 10, direction = 'loop' }
```You see more passionate him.
#### Options
* `wait_ms` (default: `100`)
- Milliseconds to wait between frames.
* `direction` (default: `'expand'`)
- Direction to animate him. Either `'expand'`, `'reduct'` or `'loop'` is available.
* `count` (default: `3`)
- Count to loop. This is ignored when `direction` is not `'loop'`.## Functions
### `start(opts)`
You can start NEKOKAK.
```lua
:lua require "nekokak".start { wait_ms = 10, direction = 'loop' }
````opts` are the same one as for `:Nekokak`.
## See also
* [mattn/vim-nekokak][]