Coder Social home page Coder Social logo

duckytype.nvim's Introduction

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.

duckytype.nvim's People

Contributors

kwakzalver avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.