-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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: Pkl language server #3440
base: master
Are you sure you want to change the base?
Conversation
LSP for the Pkl configuration language
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 for that preamble. Sounds fine to me :)
lua/lspconfig/configs/pkl_lsp.lua
Outdated
|
||
return { | ||
default_config = { | ||
cmd = { 'java', '-jar', 'path/to/pkl-lsp.jar' }, |
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.
what is path/to/
...
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.
The path depends on the user, the path here is just a placeholder.
Updated to match how similarly-configured LSPs are set up.
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.
what's the point of this config if it requires the user to manually configure the path?
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.
I looked at a couple other java-based LSPs for inspiration (nextflow_ls, groovyls if you're curious).
I'm happy to remove cmd
from default_config
, especially since the doc covers it. Let me know what you think fits best :)
Here's a language server config for Pkl.
The stars on the LSP repo itself is below the recommended (it's 28 as of writing), but it's fairly new (first release 2 weeks back, October 10) and the main language is at >10k.
It looks as though it's actively developed by the maintainers of the language, and I'd assume development will continue. I've tested the current release locally, and it works as expected.
Let me know if you think it's too early, happy to close this for now and keep a fork around until they make more progress.