zed/crates
Nathan Sobo 1734403aa3
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).
2024-01-25 22:24:37 -07:00
..
activity_indicator chore: Change AGPL-licensed crates to GPL (except for collab) (#4231) 2024-01-24 00:26:58 +01:00
ai Move interaction with keychain off the main thread 2024-01-24 14:53:05 +01:00
assets chore: Change AGPL-licensed crates to GPL (except for collab) (#4231) 2024-01-24 00:26:58 +01:00
assistant Allow prompts to have detail, and use for good 2024-01-24 23:15:37 -07:00
audio chore: Change AGPL-licensed crates to GPL (except for collab) (#4231) 2024-01-24 00:26:58 +01:00
auto_update Allow prompts to have detail, and use for good 2024-01-24 23:15:37 -07:00
breadcrumbs chore: Change AGPL-licensed crates to GPL (except for collab) (#4231) 2024-01-24 00:26:58 +01:00
call chore: Change AGPL-licensed crates to GPL (except for collab) (#4231) 2024-01-24 00:26:58 +01:00
channel Allow completions of everyone in the call 2024-01-24 10:51:46 -07:00
cli chore: Change AGPL-licensed crates to GPL (except for collab) (#4231) 2024-01-24 00:26:58 +01:00
client Fix typos discovered by codespell 2024-01-25 18:32:32 +01:00
clock chore: Change AGPL-licensed crates to GPL (except for collab) (#4231) 2024-01-24 00:26:58 +01:00
collab Fix typos discovered by codespell (#6718) 2024-01-25 10:57:18 -08:00
collab_ui Make follower avatars smaller (#6724) 2024-01-25 13:53:50 -05:00
collections Remove license-file from Cargo.toml as it is apparently redundant (#4218) 2024-01-23 17:40:30 +01:00
color small refactoring in color crate (#6695) 2024-01-25 14:36:52 +02:00
command_palette chore: Change AGPL-licensed crates to GPL (except for collab) (#4231) 2024-01-24 00:26:58 +01:00
copilot chore: Change AGPL-licensed crates to GPL (except for collab) (#4231) 2024-01-24 00:26:58 +01:00
copilot_ui Github => GitHub 2024-01-25 11:23:28 -08:00
db Replace tempdir crate with tempfile 2024-01-24 17:58:09 +00:00
diagnostics Fix rendering of diagnostic blocks (#4232) 2024-01-23 16:39:57 -07:00
editor Fix typos discovered by codespell (#6718) 2024-01-25 10:57:18 -08:00
feature_flags chore: Change AGPL-licensed crates to GPL (except for collab) (#4231) 2024-01-24 00:26:58 +01:00
feedback collab errors (#4152) 2024-01-24 23:23:58 -07:00
file_finder Sort file finder matched entries better (#6704) 2024-01-25 15:25:33 +02:00
fs chore: Change AGPL-licensed crates to GPL (except for collab) (#4231) 2024-01-24 00:26:58 +01:00
fsevent Replace tempdir crate with tempfile 2024-01-24 17:58:09 +00:00
fuzzy chore: Change AGPL-licensed crates to GPL (except for collab) (#4231) 2024-01-24 00:26:58 +01:00
git chore: Change AGPL-licensed crates to GPL (except for collab) (#4231) 2024-01-24 00:26:58 +01:00
go_to_line chore: Change AGPL-licensed crates to GPL (except for collab) (#4231) 2024-01-24 00:26:58 +01:00
gpui Fix typos discovered by codespell 2024-01-25 18:32:32 +01:00
gpui_macros Remove license-file from Cargo.toml as it is apparently redundant (#4218) 2024-01-23 17:40:30 +01:00
install_cli chore: Change AGPL-licensed crates to GPL (except for collab) (#4231) 2024-01-24 00:26:58 +01:00
journal chore: Change AGPL-licensed crates to GPL (except for collab) (#4231) 2024-01-24 00:26:58 +01:00
language Clean up references in doc comments in language crate (#6729) 2024-01-25 16:04:58 -05:00
language_selector chore: Change AGPL-licensed crates to GPL (except for collab) (#4231) 2024-01-24 00:26:58 +01:00
language_tools chore: Change AGPL-licensed crates to GPL (except for collab) (#4231) 2024-01-24 00:26:58 +01:00
live_kit_client Update cocoa to crates.io version (#6452) 2024-01-25 10:04:29 +02:00
live_kit_server Remove license-file from Cargo.toml as it is apparently redundant (#4218) 2024-01-23 17:40:30 +01:00
lsp chore: Change AGPL-licensed crates to GPL (except for collab) (#4231) 2024-01-24 00:26:58 +01:00
media Remove license-file from Cargo.toml as it is apparently redundant (#4218) 2024-01-23 17:40:30 +01:00
menu chore: Change AGPL-licensed crates to GPL (except for collab) (#4231) 2024-01-24 00:26:58 +01:00
multi_buffer chore: Change AGPL-licensed crates to GPL (except for collab) (#4231) 2024-01-24 00:26:58 +01:00
node_runtime chore: Change AGPL-licensed crates to GPL (except for collab) (#4231) 2024-01-24 00:26:58 +01:00
notifications chore: Change AGPL-licensed crates to GPL (except for collab) (#4231) 2024-01-24 00:26:58 +01:00
outline chore: Change AGPL-licensed crates to GPL (except for collab) (#4231) 2024-01-24 00:26:58 +01:00
picker Render file finder separator in a way that doesn't affect layout 2024-01-23 15:39:52 -08:00
plugin chore: Change AGPL-licensed crates to GPL (except for collab) (#4231) 2024-01-24 00:26:58 +01:00
plugin_macros chore: Change AGPL-licensed crates to GPL (except for collab) (#4231) 2024-01-24 00:26:58 +01:00
plugin_runtime chore: Change AGPL-licensed crates to GPL (except for collab) (#4231) 2024-01-24 00:26:58 +01:00
prettier chore: Change AGPL-licensed crates to GPL (except for collab) (#4231) 2024-01-24 00:26:58 +01:00
project Put back Project's completion-documention handler (#6451) 2024-01-25 12:46:51 -08:00
project_panel Allow prompts to have detail, and use for good 2024-01-24 23:15:37 -07:00
project_symbols chore: Change AGPL-licensed crates to GPL (except for collab) (#4231) 2024-01-24 00:26:58 +01:00
quick_action_bar chore: Change AGPL-licensed crates to GPL (except for collab) (#4231) 2024-01-24 00:26:58 +01:00
recent_projects chore: Change AGPL-licensed crates to GPL (except for collab) (#4231) 2024-01-24 00:26:58 +01:00
refineable Remove license-file from Cargo.toml as it is apparently redundant (#4218) 2024-01-23 17:40:30 +01:00
rich_text chore: Change AGPL-licensed crates to GPL (except for collab) (#4231) 2024-01-24 00:26:58 +01:00
rope chore: Change AGPL-licensed crates to GPL (except for collab) (#4231) 2024-01-24 00:26:58 +01:00
rpc Allow prompts to have detail, and use for good 2024-01-24 23:15:37 -07:00
search Search woes (#6698) 2024-01-25 13:28:21 +01:00
semantic_index Add missing .unwrap() 2024-01-24 18:19:03 +00:00
settings chore: Change AGPL-licensed crates to GPL (except for collab) (#4231) 2024-01-24 00:26:58 +01:00
snippet chore: Change AGPL-licensed crates to GPL (except for collab) (#4231) 2024-01-24 00:26:58 +01:00
sqlez chore: Change AGPL-licensed crates to GPL (except for collab) (#4231) 2024-01-24 00:26:58 +01:00
sqlez_macros chore: Change AGPL-licensed crates to GPL (except for collab) (#4231) 2024-01-24 00:26:58 +01:00
story chore: Change AGPL-licensed crates to GPL (except for collab) (#4231) 2024-01-24 00:26:58 +01:00
storybook Fix more tests 2024-01-23 21:49:05 -08:00
sum_tree Remove license-file from Cargo.toml as it is apparently redundant (#4218) 2024-01-23 17:40:30 +01:00
terminal chore: Change AGPL-licensed crates to GPL (except for collab) (#4231) 2024-01-24 00:26:58 +01:00
terminal_view Fix typos discovered by codespell 2024-01-25 18:32:32 +01:00
text bugfix: fix LineEnding for windows 2024-01-25 03:16:42 -05:00
theme Fix typos discovered by codespell 2024-01-25 18:32:32 +01:00
theme_importer Fix typos discovered by codespell 2024-01-25 18:32:32 +01:00
theme_selector chore: Change AGPL-licensed crates to GPL (except for collab) (#4231) 2024-01-24 00:26:58 +01:00
ui Make follower avatars smaller (#6724) 2024-01-25 13:53:50 -05:00
util Github => GitHub 2024-01-25 11:23:28 -08:00
vcs_menu chore: Change AGPL-licensed crates to GPL (except for collab) (#4231) 2024-01-24 00:26:58 +01:00
vim Vim :% and :0 2024-01-25 19:15:45 -07:00
welcome chore: Change AGPL-licensed crates to GPL (except for collab) (#4231) 2024-01-24 00:26:58 +01:00
workspace Allow prompts to have detail, and use for good 2024-01-24 23:15:37 -07:00
zed Highlight a broader range of zig functions 2024-01-25 20:30:07 -08:00
zed_actions chore: Change AGPL-licensed crates to GPL (except for collab) (#4231) 2024-01-24 00:26:58 +01:00