mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-09 10:40:04 +08:00
docs(haxe): add page for lang#haxe
layer
This commit is contained in:
parent
8390ab101b
commit
0580b46668
50
docs/layers/lang/haxe.md
Normal file
50
docs/layers/lang/haxe.md
Normal 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)
|
@ -1,9 +1,9 @@
|
|||||||
---
|
---
|
||||||
title: "SpaceVim lang#teal layer"
|
title: "SpaceVim lang#hy layer"
|
||||||
description: "This layer is for teal development, provides syntax checking, code runner and repl support for teal files."
|
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 -->
|
<!-- vim-markdown-toc GFM -->
|
||||||
|
|
||||||
@ -19,7 +19,7 @@ description: "This layer is for teal development, provides syntax checking, code
|
|||||||
|
|
||||||
## Description
|
## 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
|
## Install
|
||||||
|
|
||||||
@ -28,7 +28,7 @@ To use this configuration layer, update your custom configuration file with:
|
|||||||
|
|
||||||
```toml
|
```toml
|
||||||
[[layers]]
|
[[layers]]
|
||||||
name = "lang#teal"
|
name = "lang#hy"
|
||||||
```
|
```
|
||||||
## Features
|
## Features
|
||||||
|
|
||||||
@ -39,19 +39,19 @@ To use this configuration layer, update your custom configuration file with:
|
|||||||
## Layer options
|
## Layer options
|
||||||
|
|
||||||
|
|
||||||
- `teal_interpreter`: Set the path of `tl` command.
|
- `hy_interpreter`: Set the path of `hy` command.
|
||||||
|
|
||||||
|
|
||||||
## Key bindings
|
## Key bindings
|
||||||
|
|
||||||
### Running current script
|
### 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.
|
and the result will be shown in a runner buffer.
|
||||||
|
|
||||||
### Inferior REPL process
|
### 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:
|
Send code to inferior process commands:
|
||||||
|
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
---
|
---
|
||||||
title: "SpaceVim lang#hy layer"
|
title: "SpaceVim lang#teal layer"
|
||||||
description: "This layer is for hy development, provides syntax checking, code runner and repl support for hy files."
|
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 -->
|
<!-- vim-markdown-toc GFM -->
|
||||||
|
|
||||||
@ -19,7 +19,7 @@ description: "This layer is for hy development, provides syntax checking, code r
|
|||||||
|
|
||||||
## Description
|
## 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
|
## Install
|
||||||
|
|
||||||
@ -28,7 +28,7 @@ To use this configuration layer, update your custom configuration file with:
|
|||||||
|
|
||||||
```toml
|
```toml
|
||||||
[[layers]]
|
[[layers]]
|
||||||
name = "lang#hy"
|
name = "lang#teal"
|
||||||
```
|
```
|
||||||
## Features
|
## Features
|
||||||
|
|
||||||
@ -39,19 +39,19 @@ To use this configuration layer, update your custom configuration file with:
|
|||||||
## Layer options
|
## Layer options
|
||||||
|
|
||||||
|
|
||||||
- `hy_interpreter`: Set the path of `hy` command.
|
- `teal_interpreter`: Set the path of `tl` command.
|
||||||
|
|
||||||
|
|
||||||
## Key bindings
|
## Key bindings
|
||||||
|
|
||||||
### Running current script
|
### 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.
|
and the result will be shown in a runner buffer.
|
||||||
|
|
||||||
### Inferior REPL process
|
### 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:
|
Send code to inferior process commands:
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user