-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Vlang syntax not work by default #6164
Comments
Thanks for opening an issue. Can you check if https://github.com/helix-editor/helix/wiki/Troubleshooting#missing-syntax-highlighting addresses your problem? |
Thanks kirawi, here is:
and the vls $PATH( |
@linc01 PATH is a Unix environment variable that lists directories to search for binaries when running them by name. You can't add a binary directly to PATH. Edit: I'm assuming bin/vls_linux_x64 is a binary, not a directory, just by convention. Apologies if that's not right. |
@askreet Thank you for your response! Unfortunately, I have already attempted using the |
When you added only the
Correct, the language server has nothing to do with syntax highlighting. The fact that your output shows I don't know anything about V or Vue, but |
That's quite different from "doesn't work by default." The highlighting queries for V result in simple highlighting: https://github.com/helix-editor/helix/blob/master/runtime/queries/v/highlights.scm Someone would need to put in the work to get more detailed highlighting. |
@linc01 do you by chance have the vue lsp setup on helix as well. I just V setup on my machine and saw the same thing you do but it looks like both vue lsp and V lsp are called vls and I think that is leading to a bug in helix |
Use ":lang" to get language id. Probably this error is caused by a file type conflict, v Lines 1614 to 1617 in 3d230e7
verilog Lines 1629 to 1632 in 3d230e7
Custom configurations can be solved, append to [[language]]
name = "v"
file-types = ["v", "vv"]
[[language]]
name = "verilog"
file-types = ["vh", "sv", "svh"] there has remove "v" from verilog. We can config statusline to show language id. |
@askreet @bfg-coding @erasin @kirawi Thanks guys! |
Because I use the master branch,in new version, @kirawi There are have type conflicts in the |
Thanks, looking forward to using the upcoming version. Helix is awesome! |
Summary
Although there are some configurations available for Vlang in the languages.toml file by default, they do not seem to work as documented. Please advise on how to enable vlang-lsp, as it is working well with my Vim environment.
Thanks!
Platform
Linux
Terminal Emulator
Qt
Helix Version
22.12
The text was updated successfully, but these errors were encountered: