1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-23 17:20:04 +08:00

docs(teal): add page for lang#teal layer

This commit is contained in:
wsdjeg 2022-04-23 21:32:35 +08:00
parent 9713a45048
commit e6ae82c892
3 changed files with 72 additions and 8 deletions

View File

@ -1,9 +1,9 @@
---
title: "SpaceVim lang#hy layer"
description: "This layer is for hy development, provides syntax checking, code runner and repl support for hy files."
title: "SpaceVim lang#teal layer"
description: "This layer is for teal development, provides syntax checking, code runner and repl support for teal files."
---
# [Available Layers](../../) >> lang#hy
# [Available Layers](../../) >> lang#teal
<!-- vim-markdown-toc GFM -->
@ -19,7 +19,7 @@ description: "This layer is for hy development, provides syntax checking, code r
## Description
`lang#hy` layer provides syntax highlighting, code runner and repl support for [hy language](http://hylang.org/).
`lang#teal` layer provides syntax highlighting, code runner and repl support for [teal language](https://github.com/teal-language/tl).
## Install
@ -28,7 +28,7 @@ To use this configuration layer, update your custom configuration file with:
```toml
[[layers]]
name = "lang#hy"
name = "lang#teal"
```
## Features
@ -39,19 +39,19 @@ To use this configuration layer, update your custom configuration file with:
## Layer options
- `hy_interpreter`: Set the path of `hy` command.
- `teal_interpreter`: Set the path of `tl` command.
## Key bindings
### Running current script
To run a hy file, you can press `SPC l r` to run the current file without losing focus,
To run a teal file, you can press `SPC l r` to run the current file without losing focus,
and the result will be shown in a runner buffer.
### Inferior REPL process
Start a `hy` inferior REPL process with `SPC l s i`.
Start a `tl` inferior REPL process with `SPC l s i`.
Send code to inferior process commands:

63
docs/layers/lang/teal.md Normal file
View File

@ -0,0 +1,63 @@
---
title: "SpaceVim lang#hy layer"
description: "This layer is for hy development, provides syntax checking, code runner and repl support for hy files."
---
# [Available Layers](../../) >> lang#hy
<!-- vim-markdown-toc GFM -->
- [Description](#description)
- [Install](#install)
- [Features](#features)
- [Layer options](#layer-options)
- [Key bindings](#key-bindings)
- [Running current script](#running-current-script)
- [Inferior REPL process](#inferior-repl-process)
<!-- vim-markdown-toc -->
## Description
`lang#hy` layer provides syntax highlighting, code runner and repl support for [hy language](http://hylang.org/).
## Install
This layer is not enabled by default.
To use this configuration layer, update your custom configuration file with:
```toml
[[layers]]
name = "lang#hy"
```
## Features
- syntax highlighting
- repl support
- code runner
## Layer options
- `hy_interpreter`: Set the path of `hy` command.
## Key bindings
### Running current script
To run a hy file, you can press `SPC l r` to run the current file without losing focus,
and the result will be shown in a runner buffer.
### Inferior REPL process
Start a `hy` inferior REPL process with `SPC l s i`.
Send code to inferior process commands:
| Key Bindings | Descriptions |
| ------------ | ------------------------------------------------ |
| `SPC l s b` | send buffer and keep code buffer focused |
| `SPC l s l` | send line and keep code buffer focused |
| `SPC l s s` | send selection text and keep code buffer focused |

View File

@ -83,6 +83,7 @@ This is a list of programming languages supported in SpaceVim:
| Solidity | lang#solidity | |
| SQL | lang#sql | |
| Swift | [lang#swift](https://spacevim.org/layers/lang/swift/) | |
| Teal | [lang#teal](https://spacevim.org/layers/lang/teal/) | |
| Tcl | [lang#tcl](https://spacevim.org/layers/lang/tcl/) | |
| TypeScript | [lang#typescript](https://spacevim.org/layers/lang/typescript/) | [opened issues](https://github.com/SpaceVim/SpaceVim/issues?q=is%3Aissue+is%3Aopen+label%3Alang%3ATypeScript) |
| Visual Basic .NET | [lang#vbnet](https://spacevim.org/layers/lang/vbnet/) | |