Merge branch 'master' of https://github.com/SuperAuguste/zls into new_parser

This commit is contained in:
Alexandros Naskos 2020-05-24 19:19:04 +03:00
commit 5b86c13d08

View File

@ -12,6 +12,7 @@ Zig Language Server, or `zls`, is a language server for Zig. The Zig wiki states
- [Configuration Options](#configuration-options)
- [Usage](#usage)
- [VSCode](#vscode)
- [Sublime Text 3](#sublime-text-3)
- [Related Projects](#related-projects)
- [License](#license)
@ -53,12 +54,30 @@ The following options are currently available.
## Usage
`zls` is in its early stages, with a full analysis/completion engine coming soon, but it is still usable.
`zls` will supercharge your Zig programming experience with autocomplete, function documentation, and more! Follow the instructions for your specific editor below:
### VSCode
Install the `zls-vscode` extension from [here](https://github.com/zigtools/zls-vscode/releases).
### Sublime Text 3
- Install the `LSP` package from [here](https://github.com/sublimelsp/LSP/releases) or via Package Control.
- Add this snippet to `LSP's` user settings:
```json
{
"clients": {
"zig":{
"command": ["zls"],
"enabled": true,
"languageId": "zig",
"document_selector": "source.zig",
"syntaxes": ["Packages/Zig/Syntaxes/Zig.tmLanguage"]
}
}
}
```
## Related Projects
- [`sublime-zig-language` by @prime31](https://github.com/prime31/sublime-zig-language)
- Supports basic language features