Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/norcalli/typeracer.nvim
https://github.com/norcalli/typeracer.nvim
Last synced: 9 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/norcalli/typeracer.nvim
- Owner: norcalli
- Created: 2020-07-11T09:01:04.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-09-06T13:13:23.000Z (about 4 years ago)
- Last Synced: 2024-08-02T13:34:50.637Z (3 months ago)
- Language: Rust
- Homepage:
- Size: 28.3 KB
- Stars: 30
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
![demo](https://raw.githubusercontent.com/norcalli/github-assets/master/typeracer-demo.gif)
![demo.webm](https://raw.githubusercontent.com/norcalli/github-assets/master/typeracer-demo.webm)
# Installation
`Plug norcalli/typeracer.nvim`
# Instructions
`lua require'typeracer'.create()` to create a new game. By default it will try the server hosted on kiani.io
This will create a new window with a 5 letter code you can use to join a game.
`lua require'typeracer'.join(code)` to join a game, e.g. `lua require'typeracer.join "ABCDE"`
`lua require'typeracer'.join_random()` to join a random game.
If you are the one who created the game, use `lua require 'typeracer'.start()` to start the countdown.
*NOTE: I only tested on master so far. It _might_ work on 0.4.2...*
# Credit
@BK1603 in the gif playing with me :)
@kd\_\_\_\_\_\_t for helping me test during the stream.