# Add language-agnostic snippets \(\#13253\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/d665f28671f4074acd66da0c30b0f910609286f2)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: d665f28671f4074acd66da0c30b0f910609286f2

Requested commit: d665f28671f4074acd66da0c30b0f910609286f2

Commit: d665f28671f4074acd66da0c30b0f910609286f2

Tree: bacd9e34e064afe1b6b92e0b9aa7e2184a029ce0

Author: Piotr Osiewicz

Committer: GitHub

## Message

```
Add language-agnostic snippets (#13253)

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
```

## Parents

- [8c4fb34f6e54b3dfa5a74d851c5779bc120c73d6](https://git.cafe/gitcafe/zed/commit/8c4fb34f6e54b3dfa5a74d851c5779bc120c73d6?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/d665f28671f4074acd66da0c30b0f910609286f2?format=markdown)
