mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-23 10:30:05 +08:00
2.1 KiB
2.1 KiB
title | description |
---|---|
SpaceVim lang#sml layer | This layer is for Standard ML development, provides syntax highlighting and repl support for sml files. |
Available Layers >> lang#sml
Description
This layer is for Standard ML development.
Install
To use this configuration layer, update your custom configuration file with:
[[layers]]
name = "lang#sml"
Layer options
smlnj_path
: Set the path to the smlnj executable, by default, it issml
.mlton_path
: Set the path to the mlton executable, by default, it ismlton
.repl_options
: Options used for REPL, by default, it is ''.auto_create_def_use
: Whether to build def-use files on save automatically. By default, it ismlb
. Valid values is:mlb
: Auto build def-use if there's a*.mlb
filealways
: Always build def-use filenever
: Never build def-use file
enable_conceal
:true
/false
. Whether to enable concealing for SML files.false
by default.'a
becomesα
(or'α
).fn
becomesλ.
enable_conceal_show_tick
:true
/false
. When conceal is enabled, show'α
for'a
instead ofα
. Helps for alignment.false
by default.sml_file_head
: Template for new sml file.
Key bindings
Running current script
The key binding for running current sml file is SPC l r
.
It will run the current file without losing focus,
and the result will be shown in a runner buffer.
Inferior REPL process
Start a sml
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 |