Original link: https://spacevim.org/cn/layers/lang/erlang/
- Module Introduction
- Functional characteristics
- Enable module
- Shortcut keys
- Language-specific shortcut keys
- Interactive programming
Module Introduction
This module provides Erlang development support for Spacevim, including code completion, syntax checking, and formatting of code.
Functional characteristics
- Code completion
- Document Query
- Jump definition at
Spacevim also provides interactive programming and language server capabilities for Erlang development. To enable a language server, you need to load the lsp
module.
Enable module
You can enable the module by adding the following configuration to the configuration file:
[[layers]] name = "lang#erlang"
Shortcut key language Exclusive shortcuts
Key |
function Description |
SPC l d /K |
Show cursor functions or variables related documents ( lsp module required) |
SPC l e |
Rename cursor function or variable (requires lsp module) |
g d |
Jump to function or variable definition (requires lsp module) |
Interactive programming
Start erl
The interactive process, the shortcut key is: SPC l s i
.
Transfer code to the REPL process execution:
shortcut Keys |
Description |
SPC l s b |
Send entire file contents to REPL |
SPC l s l |
Send current line contents to REPL |
SPC l s s |
Send the selected content to REPL |
Spacevim Language Module Erlang