-
-
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
feat(lsp): add toml lsp #2302
feat(lsp): add toml lsp #2302
Conversation
Seems like it supports schemas which match against files like |
@@ -59,6 +59,7 @@ injection-regex = "toml" | |||
file-types = ["toml"] | |||
roots = [] | |||
comment-token = "#" | |||
language-server = { command = "taplo", args = ["lsp", "stdio"] } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
From the docs (here) it looks like this should be
language-server = { command = "taplo", args = ["lsp", "stdio"] } | |
language-server = { command = "taplo-lsp", args = ["run"] } |
But maybe I'm just running an out of date binary locally? I'm running taplo-lsp
0.2.6 and maybe the most recent taplo has consolidated the LSP and CLI binaries?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
taplo-lsp can no longer be installed by itself, it can only be run from taplo lsp
.
I think it was unified all in one.
https://taplo.tamasfe.dev/lsp/#native-binary
In this section it says install with cargo install taplo-lsp
but throws an error.
I install taplo-cli and it runs with the simple taplo command. I attach a screenshot.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah ok, yeah looks like my package manager is behind on taplo versions. This looks good then 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Add default lsp for toml
https://taplo.tamasfe.dev/