-
-
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
Support taplo with schemas #3901
Comments
For anyone interested in working on this, here is the documentation on how to create/publish schemas for taplo: https://taplo.tamasfe.dev/configuration/developing-schemas.html |
I would love ❤️ to run with this. Additionally, we should commit the generated schema files since the possible keys + values within each TOML file change depending on the commit you are on. Will be awesome to be able to view the documentation for all the possible keys within the TOML files without having to go to the book/website (especially for editing themes when you need to look up what every scope does). (Would be a cool UX feature to have Taplo auto-installed along with helix so that anytime a new user goes to their config they have auto-complete enabled by default) |
It should probably be possible for helix to tell taplo exactly what schema to use, so you always have the correct completions. Publishing them to the Json Schema Store additionally makes sense, but I think it is save to assume that the config file you are editing is in most cases for the version of helix you are currently running. |
I don't really think it makes sense to invest a bunch of effort into writing and maintaining these schemas at this point since we plan to replace the toml config with a scheme based config in the future |
Thanks for the quick notice. I will NOT be running with this then. Should we close this issue since the original description talks about "integration with taplo for TOML files related to Helix itself" and we are going to be moving away from TOML-based configs ? |
Yep, let's close this out since we're eventually planning on switching away from TOML |
What is Helix switching to? |
The plugin system will most likely be a scheme dialect, so config will be written in scheme and be scriptable rather than TOML |
keep both options; you are ruining a beautiful thing by eliminating TOML |
A couple of issues (#3383, #3897) have been opened around integration with taplo for TOML files related to Helix itself. It seems the root of this issue is that there are no schemas published for Helix.
I myself don't know much about how taplo works, or json schemas, but perhaps we could put together and publish a scheme, or maybe there's something we could check in and a default config setting we could use for them?
The text was updated successfully, but these errors were encountered: