From 0580b466680a78da3589525a7cc029c59724d515 Mon Sep 17 00:00:00 2001 From: wsdjeg Date: Sat, 23 Apr 2022 23:11:04 +0800 Subject: [PATCH] docs(haxe): add page for `lang#haxe` layer --- docs/layers/lang/haxe.md | 50 ++++++++++++++++++++++++++++++++++++++++ docs/layers/lang/hy.md | 16 ++++++------- docs/layers/lang/teal.md | 16 ++++++------- 3 files changed, 66 insertions(+), 16 deletions(-) create mode 100644 docs/layers/lang/haxe.md diff --git a/docs/layers/lang/haxe.md b/docs/layers/lang/haxe.md new file mode 100644 index 000000000..4d9a6b3a5 --- /dev/null +++ b/docs/layers/lang/haxe.md @@ -0,0 +1,50 @@ +--- +title: "SpaceVim lang#haxe layer" +description: "This layer is for haxe development, provides syntax checking, code runner for haxe files." +--- + +# [Available Layers](../../) >> lang#haxe + + + +- [Description](#description) +- [Install](#install) +- [Features](#features) +- [Layer options](#layer-options) +- [Key bindings](#key-bindings) + - [Run current file](#run-current-file) + + + +## Description + +`lang#haxe` layer provides syntax highlighting, code runner and repl support for [haxe language](https://haxe.org/). + +## Install + +This layer is not enabled by default. +To use this configuration layer, update your custom configuration file with: + +```toml +[[layers]] + name = "lang#haxe" +``` +## Features + +- syntax highlighting +- code runner + +## Layer options + + +- `haxe_interpreter`: Set the path of `haxe` command. + + +## Key bindings + +### Run current file + +To run a haxe 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. + +![run haxe](https://user-images.githubusercontent.com/13142418/164911958-4a6350d4-20be-4948-b3a3-70bc7e367b69.png) diff --git a/docs/layers/lang/hy.md b/docs/layers/lang/hy.md index d2885214d..a82e625ba 100644 --- a/docs/layers/lang/hy.md +++ b/docs/layers/lang/hy.md @@ -1,9 +1,9 @@ --- -title: "SpaceVim lang#teal layer" -description: "This layer is for teal development, provides syntax checking, code runner and repl support for teal files." +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#teal +# [Available Layers](../../) >> lang#hy @@ -19,7 +19,7 @@ description: "This layer is for teal development, provides syntax checking, code ## Description -`lang#teal` layer provides syntax highlighting, code runner and repl support for [teal language](https://github.com/teal-language/tl). +`lang#hy` layer provides syntax highlighting, code runner and repl support for [hy language](http://hylang.org/). ## Install @@ -28,7 +28,7 @@ To use this configuration layer, update your custom configuration file with: ```toml [[layers]] - name = "lang#teal" + name = "lang#hy" ``` ## Features @@ -39,19 +39,19 @@ To use this configuration layer, update your custom configuration file with: ## Layer options -- `teal_interpreter`: Set the path of `tl` command. +- `hy_interpreter`: Set the path of `hy` command. ## Key bindings ### Running current script -To run a teal file, you can press `SPC l r` to run the current file without losing focus, +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 `tl` inferior REPL process with `SPC l s i`. +Start a `hy` 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 index a82e625ba..d2885214d 100644 --- a/docs/layers/lang/teal.md +++ b/docs/layers/lang/teal.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: