Gleam
Gleam syntax support for Sublime Text
Details
Installs
- Total 111
- Win 19
- Mac 55
- Linux 37
Dec 5 | Dec 4 | Dec 3 | Dec 2 | Dec 1 | Nov 30 | Nov 29 | Nov 28 | Nov 27 | Nov 26 | Nov 25 | Nov 24 | Nov 23 | Nov 22 | Nov 21 | Nov 20 | Nov 19 | Nov 18 | Nov 17 | Nov 16 | Nov 15 | Nov 14 | Nov 13 | Nov 12 | Nov 11 | Nov 10 | Nov 9 | Nov 8 | Nov 7 | Nov 6 | Nov 5 | Nov 4 | Nov 3 | Nov 2 | Nov 1 | Oct 31 | Oct 30 | Oct 29 | Oct 28 | Oct 27 | Oct 26 | Oct 25 | Oct 24 | Oct 23 | Oct 22 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Mac | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Linux | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 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 |
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
Formatting
This package does not provide code formatting, but you can easily set this up using the Fmt package. Follow the instructions to install it and open the package settings, then add this rule:
{
"rules": [
{
"selector": "source.gleam",
"cmd": ["gleam", "format", "--stdin"],
"format_on_save": true,
"merge_type": "diff",
},
],
}
With "format_on_save": true
, Gleam code will be formatted whenever you save.
To instead format on demand, use Fmt: Format Buffer in the command palette.
See the Fmt README for instructions on binding this to a key combo.
The above cmd
should work if you have the gleam
binary in your path, in the
same environment Sublime Text is running on. Other examples:
- with Gleam installed using ASDF:
["~/.asdf/shims/gleam", "format", "--stdin"]
- with Sublime Text on Windows and Gleam on WSL:
["wsl", "gleam", "format", "--stdin"]
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
.zip
for 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).