A Sublime text language package for the Gleam programming language.
- 🎨 Gleam syntax highlighting.
- 👔 Gleam format on save.
For formatting to work you must have gleam
installed on your computer.
Follow these instructions for installing gleam
: https://gleam.run/getting-started/
You can get this package on Package Control.
- Open up Sublime text
- Press
CTRL + Shift + P
inside Sublime Text - Type
Gleam
and press enter.
Otherwise, go to your Packages
folder, and execute
git clone [email protected]:itsgreggreg/sublime-text-gleam.git Gleam
To access setings for this package click on:
Preferences -> Package Settings -> Gleam -> Settings
format_on_save
is on for all gleam files by default, you can change this
by opening the package settings and changing format_on_save
to one of the
available options.
For the full list of options open up the settings for this package.
This package will try to find gleam
automatically in your system but in case
it can't or you want to use a specific version of gleam
, change the
absolute_path
option in your settings file to be the location of the gleam
executable on your computer.
If you know gleam
is installed but formatting is not working, try running
which gleam
in the terminal and pasting the output of that command into
absolute_path
.
Welcome! Feel free to file a bug or make a pull request.