# Add Zig support \(\#6690\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 1734403aa333b43f6e51886d7a328bb5c246a15a

Requested commit: 1734403aa333b43f6e51886d7a328bb5c246a15a

Commit: 1734403aa333b43f6e51886d7a328bb5c246a15a

Tree: a155d8db012afecf394e6cc3819b606c22b935a5

Author: Nathan Sobo

Committer: GitHub

## Message

```
Add Zig support (#6690)

This PR adds support for Zig with the official LSP (ZLS) and the
treesitter grammar listed on the
[website](https://tree-sitter.github.io/tree-sitter/). I've tested this
on a few large codebases and go to definition, completion, and hover
overlays all seem to work fine with no error logs.

![Screenshot 2024-01-24 at 20 17
18](https://github.com/zed-industries/zed/assets/11731580/be7b4f1d-878e-4e3e-839b-a5f962df7555)

The highlights are adapted from the tree sitter repository which target
neovim I think, I've fixed a handful of issues and the highlighting is
looking pretty good but need to do more testing.

Release Notes:
- Added Zig support with zls
[#5300](https://github.com/zed-industries/zed/issues/5300).
```

## Parents

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

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

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