mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-29 21:49:33 +00:00
d665f28671
Note that right now we can't attach a language server to arbitrary buffer, which is why I've listed a bunch of languages verbatim. See https://github.com/zed-industries/simple-completion-language-server/tree/main for docs on how to define your snippets. They should be placed in ~/.config/zed/snippets ; `snippets.(toml|json)` file can be used to define language-agnostic snippets, and any other name (e.g. `python.toml`) will apply only to buffers of that particular type. There's https://github.com/rafamadriz/friendly-snippets you can use as a repository of snippets, for your convenience. Fixes https://github.com/zed-industries/zed/issues/4611 Release Notes: - Added support for snippets via simple-completion-language-server
17 lines
251 B
TOML
17 lines
251 B
TOML
[package]
|
|
name = "zed_snippets"
|
|
version = "0.0.1"
|
|
edition = "2021"
|
|
publish = false
|
|
license = "Apache-2.0"
|
|
|
|
[lints]
|
|
workspace = true
|
|
|
|
[lib]
|
|
path = "src/snippets.rs"
|
|
crate-type = ["cdylib"]
|
|
|
|
[dependencies]
|
|
zed_extension_api = "0.0.6"
|
|
serde_json = "1.0"
|