DuckyType.nvim
Like MonkeyType, but avian. 🦆
In your lua configuration, add an empty setup to accept the defaults.
require('duckytype').setup{}
Then start with
require('duckytype').Start()
duckytype.webm.mov
When a game is finished, the user can hit Enter
in normal mode to start a new
game. Normal mode is entered automatically. The little window behaves just like
any other window, you can use :q
to close it.
Settings
By default, the expected words are randomly sampled from english_common
.
See the constants.lua file for other sets of
keywords.
We can then override the defaults with
require('duckytype').setup{
expected = "python_keywords",
number_of_words = 42,
average_word_length = 5.69,
}
NOTE when you override a non-existing key it will error
The keywords source can be edited in the setup, but it could also be passed as
an argument to the Start
function, so there is no need to reload vim if you
want to to have a Go at go keywords.
Bind some keys to your favorite sets of keywords so you can waste your time more efficiently.
require('duckytype').Start("english_common")
require('duckytype').Start("cpp_keywords")
require('duckytype').Start("python_keywords")
require('duckytype').Start("go_keywords")
NOTE Feel free to add keywords in a pull request.