swarm/editors
Ondřej Šebek 1b3e622655
Add swap command (#685)
- closes #684
- closes #680
2022-09-17 11:21:26 +00:00
..
emacs Add swap command (#685) 2022-09-17 11:21:26 +00:00
vscode Add swap command (#685) 2022-09-17 11:21:26 +00:00
README.md Add vscode editor integration (#255) 2021-11-11 16:15:17 +00:00

Text Editor Configuration

Validate a swarm-lang file using: swarm format ./file.sw

Swarm comes with a language server protocol (LSP) server. Make sure the swarm program is present in your PATH, then configure your editor.

EMACS

The current LSP implementation features the following extensions:

  • error diagnostic on load/save

Using lsp-mode:

Load the swarm-mode.el and start the M-x lsp service in a swarm-mode buffer.

VS Code and VS Codium

The swarm-lang extension provides highlighting and an LSP client. That is if you have swarm executable in PATH, then the executable will be used as LSP server to show errors as you type.

You can get it by:

  • installing from MS marketplace (link)
  • building from source in the vscode folder
  • TBD get the VSIX from GitHub releases
  • TBD installing from the VS codium free marketplace

Vim and Neovim

Currently there is neither highlighting nor LSP support for Vim, but we would be happy to accept a contribution.