1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-24 05:40:05 +08:00
SpaceVim/docs/layers/lang/fsharp.md

56 lines
1.2 KiB
Markdown
Raw Normal View History

---
title: "SpaceVim lang#fsharp layer"
2019-02-03 20:51:01 +08:00
description: "This layer adds FSharp language support to SpaceVim"
---
# [Available Layers](../../) >> lang#fsharp
<!-- vim-markdown-toc GFM -->
- [Description](#description)
- [Features](#features)
- [Install](#install)
- [Key bindings](#key-bindings)
- [Inferior REPL process](#inferior-repl-process)
<!-- vim-markdown-toc -->
## Description
2019-02-03 20:51:01 +08:00
This layer adds FSharp language support to SpaceVim.
## Features
2021-06-21 20:39:29 +08:00
- syntax highlighting, indentation provided by [vim-fsharp](https://github.com/wsdjeg/vim-fsharp)
- REPL support
## Install
2019-02-03 20:51:01 +08:00
**Install FSharp on Archlinux:**
```sh
yaourt -S fsharp-git
```
2021-06-21 20:39:29 +08:00
To use this configuration layer, update your custom configuration file with:
```toml
[[layers]]
name = "lang#fsharp"
```
## Key bindings
### Inferior REPL process
2019-01-07 21:15:22 +08:00
Start a `fsharpi --readline-` inferior REPL process with `SPC l s i`.
Send code to inferior process commands:
2019-02-03 20:51:01 +08:00
| 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 |