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

47 lines
1.2 KiB
Markdown
Raw Normal View History

2018-02-07 08:28:26 +08:00
---
title: "SpaceVim lang#ocaml layer"
2021-06-21 20:39:29 +08:00
description: "This layer is for OCaml development, provides autocompletion, syntax checking, and code formatting for OCaml files."
2018-02-07 08:28:26 +08:00
---
2018-06-23 14:37:41 +08:00
# [Available Layers](../../) >> lang#ocaml
2018-02-07 08:28:26 +08:00
<!-- vim-markdown-toc GFM -->
- [Description](#description)
- [Install](#install)
- [Features](#features)
2018-02-07 13:49:44 +08:00
- [Key bindings](#key-bindings)
2018-02-07 08:28:26 +08:00
<!-- vim-markdown-toc -->
## Description
This layer is for OCaml development.
When using in a multi-file project, be sure to include a [.merlin](https://github.com/ocaml/merlin/wiki/project-configuration) file.
## Install
2021-06-21 20:39:29 +08:00
To use this configuration layer, update your custom configuration file with:
2018-06-23 14:37:41 +08:00
```toml
[[layers]]
name = "lang#ocaml"
```
2018-02-07 08:28:26 +08:00
## Features
- auto-completion
- syntax checking
- goto definition
- type hint
- check `Merlin` version
2018-02-07 13:49:44 +08:00
## Key bindings
| Key Binding | Description |
| ----------- | ------------------------------------------------------------------- |
| `gd` | jump at the definition of the identifier under the cursor |
| `SPC l m v` | display `Merlin` version which currently labored |
| `SPC l m t` | display type informations under the cursor or selected code snippet |