Open hoijui opened 10 months ago
I think command you are looking for is turtle-language-server
.
Can you report back it that works?
That is what I used, as you can see in the second line in the config file. Thing is.. it might work, but syntax highlighting does not work for sure, and that is what I use for validating visually, if it works or not. ... should that be working for turtle?
I did some digging.
For me, it worked pretty easily with helix with this configuration inside ~/.config/helix/languages.toml
[language-server.turtle-lsp]
command = "turtle-language-server"
[[language]]
name = "turtle"
scope = "source.ttl"
injection-regex = "turtle"
file-types = ["ttl"]
comment-token = "#"
indent = { tab-width = 2, unit = " " }
language-servers = [ "turtle-lsp" ]
roots = [] # note root
Result:
The problem with highlighting is that the lsp uses semantic tokens to highlight the code (not treesitter), which is currently not yet implemented by helix. https://github.com/helix-editor/helix/pull/9360
But it does look like people are working on it.
Woah cool! :-) glad to see this, and even in Rust! thank you!
I am mostly interested in the turtle support, but.. think I did not yet get it working well. I would like to see instructions for that in the README too, and next to NVim, also for Helix - A quite well received Vim/Kakoune alternative written in Rust.
This is what I did to configure Helix, and .. I think it .. works, but am not sure:
~/.config/helix/languages.toml
: