20 lines
585 B
Markdown
20 lines
585 B
Markdown
# hydra-rce
|
|
|
|
Send code to Hydra from Neovim
|
|
|
|
## Usage
|
|
|
|
* Add contents of `keymap.lua` to your Neovim config
|
|
* Install dependencies
|
|
* Server: `aiohttp`, `websockets`
|
|
* Hydra: simply run `npm install`
|
|
* Run server (`scripts/server.py`) and Hydra (`npm run dev`)
|
|
* Try running the following snippet by selecting it in visual mode and pressing Alt+Enter:
|
|
|
|
```javascript
|
|
solid([1, 0, 0], [0, 1, 0], [0, 0, 1]).out();
|
|
```
|
|
|
|
**Note:** If Hydra is not visible (i.e. when you don't have it next to your editor/on
|
|
another screen), the `time` global is only updated roughly once a second.
|