Gleam
Gleam syntax support for Sublime Text
Details
Installs
- Total 661
- Win 167
- Mac 262
- Linux 232
| Jul 14 | Jul 13 | Jul 12 | Jul 11 | Jul 10 | Jul 9 | Jul 8 | Jul 7 | Jul 6 | Jul 5 | Jul 4 | Jul 3 | Jul 2 | Jul 1 | Jun 30 | Jun 29 | Jun 28 | Jun 27 | Jun 26 | Jun 25 | Jun 24 | Jun 23 | Jun 22 | Jun 21 | Jun 20 | Jun 19 | Jun 18 | Jun 17 | Jun 16 | Jun 15 | Jun 14 | Jun 13 | Jun 12 | Jun 11 | Jun 10 | Jun 9 | Jun 8 | Jun 7 | Jun 6 | Jun 5 | Jun 4 | Jun 3 | Jun 2 | Jun 1 | May 31 | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Windows | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 |
| Mac | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 |
| Linux | 0 | 0 | 0 | 0 | 0 | 3 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 |
Readme
- Source
- raw.githubusercontent.com
Sublime Text + Gleam
✨ Gleam syntax support for Sublime Text.
Installation
This package is available on Package Control. To install:
- Open the command palette (Ctrl/Cmd+Shift+P)
- Select Package Control: Install Package
- Select Gleam
Language Server
The Gleam Language Server enables improved
autocomplete, go-to-definition, formatting, “hover docs”, compiler feedback in
the editor, and more. To set it up, install the LSP package and
open Preferences: LSP Server Configurations in the command palette, then add
a gleam server config:
{
"gleam": {
"enabled": true,
"command": ["gleam", "lsp"],
"selector": "source.gleam"
}
}
When Gleam is installed using asdf or a similar version manager, the command
should instead be e.g. ["asdf", "exec", "gleam", "lsp"].
Note: If using Sublime Text on Windows and Gleam in WSL (or a similar
scenario), the LSP package won't work since it does not support
path translation. In this case, you can still at least get in-editor formatting
using the Fmt package; follow its
its instructions to set up a rule with source.gleam as the selector and e.g.
["wsl", "gleam", "format", "--stdin"] as the command.
Compatibility
This package is developed for Sublime Text 4+, and is not available in Package Control on older versions. It can be installed manually in Sublime Text 3, but this is unsupported, and bugs that only appear in ST3 will not be fixed.
Manual Installation
- Download the
.zipfor the desired version from the GitHub Releases page - Rename this file (without unzipping it) to
Gleam.sublime-package - Place the file in your Sublime Text “Installed Packages” directory
“Installed Packages” can be found using Preferences → Browse Packages within Sublime Text (go up one level from the directory this opens).