-
-
Notifications
You must be signed in to change notification settings - Fork 909
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
Feature Req: Schema/Linting standard for hyprland config #2843
Comments
I am working on a parser and lsp that should at least help with ide stuff |
Since we can source a file (multi-file configs) into hyprland config, wouldn't the lua file format more appropriate? |
+1 for lua, most tools use this language for config |
no |
Here is a tree-sitter parser for hyprland config file, to be used with neovim: https://github.com/hyprland-community/hyprparse |
That's my parser, not the treesitter |
That is the correct one: https://github.com/luckasRanarison/tree-sitter-hyprlang |
There's one more thing: maybe errors and syntax generally can be improved to help newcomers.
|
this should move to https://github.com/hyprwm/hyprlang/ Possibly hyprwm/hyprlang#13 |
Description
I like the config based approach in Hyprland, but it can be confusing as a newcomer to enumerate and understand all the config options, and there's a potential for the dreaded combination of syntax errors and misconfiguration when trying to figure out how the config works.
It would be nice if I could edit my config in an IDE and it was able to validate my config syntax, ensure the configuration options have valid keys/values, and identify any problems with the "nesting" of objects being at the right height.
I would suggest using an existing open schema standard for validation to allow third-party apps such as IDE's, yaml/toml/whatever config macros, and extensions that generate some of the boilerplate config.
The text was updated successfully, but these errors were encountered: