Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

posts/first-steps-with-zig/ #43

Open
utterances-bot opened this issue May 14, 2021 · 2 comments
Open

posts/first-steps-with-zig/ #43

utterances-bot opened this issue May 14, 2021 · 2 comments

Comments

@utterances-bot
Copy link

First steps with Zig - Harsh Shandilya

I've decided to learn Zig, and here's how I'm preparing for it.

https://msfjarvis.dev/posts/first-steps-with-zig/

Copy link

Nice post, and welcome to Zig! I added a link to this post at Collection of blog posts about the Zig programming language, I hope you don't mind :)

To be able to use VSCode for writing Zig, I also installed the official zls language server for Zig. This did get me go-to-declaration support for the standard library, but not syntax highlighting. I’m not sure if that’s intended, or a bug with my local setup.

I have the 'Zig' VSCode extention by Marc Tiehuis installed, I believe this is what's providing my syntax highlighting. I wouldn't expect a language server to provide syntax highlighting as I expect that works by integrating with the IDE being used (?).

@msfjarvis
Copy link
Owner

Nice post, and welcome to Zig! I added a link to this post at Collection of blog posts about the Zig programming language, I hope you don't mind :)

I certainly do not, thanks for the feature!

To be able to use VSCode for writing Zig, I also installed the official zls language server for Zig. This did get me go-to-declaration support for the standard library, but not syntax highlighting. I’m not sure if that’s intended, or a bug with my local setup.

I have the 'Zig' VSCode extention by Marc Tiehuis installed, I believe this is what's providing my syntax highlighting. I wouldn't expect a language server to provide syntax highlighting as I expect that works by integrating with the IDE being used (?).

I will have to give that a shot, thanks for letting me know. My expectations are possibly skewed by rust-analyzer, which as I understand, handles LSP functionality as well as provides syntax highlighting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants