diff --git a/docs/layers/lang/hy.md b/docs/layers/lang/hy.md index a82e625ba..d2885214d 100644 --- a/docs/layers/lang/hy.md +++ b/docs/layers/lang/hy.md @@ -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 @@ -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: diff --git a/docs/layers/lang/teal.md b/docs/layers/lang/teal.md new file mode 100644 index 000000000..a82e625ba --- /dev/null +++ b/docs/layers/lang/teal.md @@ -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 + + + +- [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) + + + +## 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 | + diff --git a/wiki/en/programming-languages.md b/wiki/en/programming-languages.md index 32122dc3a..5c4648204 100644 --- a/wiki/en/programming-languages.md +++ b/wiki/en/programming-languages.md @@ -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/) | |