2018-08-25 20:48:00 +08:00
|
|
|
---
|
|
|
|
title: "SpaceVim lang#fsharp layer"
|
2019-02-03 20:51:01 +08:00
|
|
|
description: "This layer adds FSharp language support to SpaceVim"
|
2018-08-25 20:48:00 +08:00
|
|
|
---
|
|
|
|
|
|
|
|
# [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.
|
2018-08-25 20:48:00 +08:00
|
|
|
|
|
|
|
## Features
|
|
|
|
|
2021-06-21 20:39:29 +08:00
|
|
|
- syntax highlighting, indentation provided by [vim-fsharp](https://github.com/wsdjeg/vim-fsharp)
|
2018-08-25 20:48:00 +08:00
|
|
|
- REPL support
|
|
|
|
|
|
|
|
## Install
|
|
|
|
|
2019-02-03 20:51:01 +08:00
|
|
|
**Install FSharp on Archlinux:**
|
2018-08-25 20:48:00 +08:00
|
|
|
|
|
|
|
```sh
|
|
|
|
yaourt -S fsharp-git
|
|
|
|
```
|
|
|
|
|
2021-06-21 20:39:29 +08:00
|
|
|
To use this configuration layer, update your custom configuration file with:
|
2018-08-25 20:48:00 +08:00
|
|
|
|
|
|
|
```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`.
|
2018-08-25 20:48:00 +08:00
|
|
|
|
|
|
|
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 |
|
2018-08-25 20:48:00 +08:00
|
|
|
|