1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-24 05:30:07 +08:00
SpaceVim/docs/layers/lang/processing.md

55 lines
1.5 KiB
Markdown
Raw Normal View History

---
title: "SpaceVim lang#processing layer"
description: "This layer is for working on Processing sketches. It provides syntax checking and an app runner"
---
# [Available Layers](../../) >> lang#processing
<!-- vim-markdown-toc GFM -->
- [Description](#description)
- [Features](#features)
- [Install](#install)
- [Layer](#layer)
- [Key bindings](#key-bindings)
- [Code runner](#code-runner)
<!-- vim-markdown-toc -->
## Description
This layer is for working on Processing sketches.
It builds on top of the existing vim plugin [sophacles/vim-processing](https://github.com/sophacles/vim-processing).
## Features
- Syntax highlighting and indent
- Run sketches asynchonously
## Install
You will need to install the `processing-java` tool.
This is best done via the Processing IDE which can be obtained from the [processing website](https://processing.org/download/).
Once you have the IDE, you can select Tools -> install "processing-java".
### Layer
2021-06-21 20:39:29 +08:00
To use this configuration layer, update your custom configuration file with:
```toml
[[layers]]
name = "lang#processing"
```
## Key bindings
| Key bindings | Descriptions |
| --------------- | -------------------------------- |
| `SPC l r` | Run your sketch |
### Code runner
You can build and run your sketch with `SPC l r`.
2021-06-21 20:39:29 +08:00
The sketch to run is decided based on the directory of your current buffer.
Note that the sketch is run asynchonously, so you are free to continue editing while it is running.