Skip to content

Type to search extensions

Gleam Snippets

v0.1.0

Gleam snippets for Zed IDE. A collection of Gleam snippets to improve your development speed.

Updated 7 months ago
259 downloads 0 stars Repository ↗

Gleam Snippets for Zed IDE

A collection of Gleam snippets for the Zed IDE that you might be used to from other editors.

Features

This extension provides a comprehensive set of snippets for Gleam development, including:

  • Package and import declarations
  • case and use expressions
  • let and const assignment expressions
  • Public, private, test and anonymous function declarations
  • Type declarations
  • Pipes
  • And much more!

Installation

Method 1

  1. Go to Extensions menu in Zed IDE
  2. Search for "gleam-snippets"
  3. Click "Install"

Method 2

  1. Clone this repo:
git clone https://github.com/BlueBlizzardd/gleam-zed-snippets
  1. Go to Extensions menu in Zed IDE
  2. Click "Install Dev Extension"
  3. Select the folder you cloned

Usage

Start typing the snippet prefix in a Gleam file and press Tab to expand the snippet.

Available Snippets

Prefix Description
pub / pub fn Public function
fn Private function
test Test function
af Anonymous function
let Let assignment
leta Let assert assignment
const Const assignment
pub / pub const Public const assignment
use use expression
case case expression
type Type declaration
pty / pub type Public type declaration
pexfn / pub external / pub external fn Public external function declaration
im Import
im. Import unqualified
p / |> Pipe
# Tuple
bl Block
seq / should Should equal
strue / should / should.b Should be true
sfalse / should / should.b Should be true

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add some amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

License

This project is licensed under the GNU General Public License v3.0 - see the LICENSE file for details.

Author

Eduardo Juliao - ejuliao9@gmail.com

Repository

https://github.com/BlueBlizzardd/gleam-zed-snippets

ZedExt An unofficial community project. Not affiliated with Zed Industries.

Data from Zed’s extension registry and GitHub · updated