1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-23 10:40:03 +08:00

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

This commit is contained in:
wsdjeg 2022-04-23 23:11:04 +08:00
parent 8390ab101b
commit 0580b46668
3 changed files with 66 additions and 16 deletions

50
docs/layers/lang/haxe.md Normal file
View File

@ -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
<!-- vim-markdown-toc GFM -->
- [Description](#description)
- [Install](#install)
- [Features](#features)
- [Layer options](#layer-options)
- [Key bindings](#key-bindings)
- [Run current file](#run-current-file)
<!-- vim-markdown-toc -->
## 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)

View File

@ -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
<!-- vim-markdown-toc GFM -->
@ -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:

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: