mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-23 22:40:04 +08:00
54 lines
1.0 KiB
Markdown
54 lines
1.0 KiB
Markdown
---
|
|
title: "SpaceVim lang#reason layer"
|
|
description: "This layer is for reason development, provides syntax checking, code runner and repl support for reason files."
|
|
---
|
|
|
|
# [Available Layers](../../) >> lang#reason
|
|
|
|
<!-- vim-markdown-toc GFM -->
|
|
|
|
- [Description](#description)
|
|
- [Install](#install)
|
|
- [Features](#features)
|
|
- [Key bindings](#key-bindings)
|
|
|
|
<!-- vim-markdown-toc -->
|
|
|
|
## Description
|
|
|
|
This layer is for [reason](http://reasonml.github.io/) development.
|
|
|
|
## Install
|
|
|
|
To use this configuration layer, update your custom configuration file with:
|
|
|
|
```toml
|
|
[[layers]]
|
|
name = "lang#reason"
|
|
```
|
|
|
|
## Features
|
|
|
|
- syntax highlighting
|
|
- esy tasks detection
|
|
|
|
## Key bindings
|
|
|
|
The following key bindings are reason language specific key binding, only available when editing
|
|
reason file.
|
|
|
|
| Key binding | Description |
|
|
| --------------- | --------------- |
|
|
| `K` / `SPC l d` | Show cursor doc |
|
|
| `SPC l e` | Rename symbol |
|
|
|
|
**NOTE:** These key bindings require `lsp` layer loaded:
|
|
|
|
```toml
|
|
[[layers]]
|
|
name = "lsp"
|
|
filetypes = [
|
|
"reason"
|
|
]
|
|
```
|