Back to Spacevim

SpaceVim lang#elang layer

docs/layers/lang/erlang.md

2.4.01.6 KB
Original Source

Available Layers >> lang#erlang

<!-- vim-markdown-toc GFM --> <!-- vim-markdown-toc -->

Description

This layer is for Erlang development.

Features

  • code completion
  • syntax highlighting
  • syntax checking

SpaceVim also provides REPL, code runner and Language Server protocol support for Erlang. To enable language server protocol for Erlang, you need to load lsp layer for Erlang.

Install

Layer

To use this configuration layer, update your custom configuration file with:

toml
[[layers]]
  name = "lang#erlang"

Key bindings

Language specific key bindings

Key BindingsDescriptions
SPC l d / KShow doc of cursor symbol (need lsp layer)
SPC l eRename symbol (need lsp layer)
g dJump to definition (need lsp layer)

Inferior REPL process

Start a erl inferior REPL process with SPC l s i.

Send code to inferior process commands:

Key BindingsDescriptions
SPC l s bsend buffer and keep code buffer focused
SPC l s lsend line and keep code buffer focused
SPC l s ssend selection text and keep code buffer focused