-
-
Notifications
You must be signed in to change notification settings - Fork 16
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
unique file extension desireable? #13
Comments
@luckasRanarison fyi |
no, not really. That would be an annoying breaking change. |
Out of curiosity, why would this be a breaking change? ps: sry for the double issue, didnt even noticed i created two!? |
well hyprlang doesn't care about the extension, so I assumed you meant official hypr* apps switching to something like .hypr, in which case people would have to rename their configs, hence, breaking change |
If Hyprlang gets its own Tree-sitter grammar, using a unique file extension will allow text editors to easily recognize the file type. It’s not necessary to force users to rename their config files now. Hyprland may support both *.conf and hypothetical *.hypr. The only changing thing is the default config file name for new users (e.g. |
That would be awesome! If we could handle extensions for hypr like @asqarslanov suggests. |
Btw. the treesitter spec is here already: https://github.com/luckasRanarison/tree-sitter-hyprlang Luckas is working on an integration into nvim-treesitter/nvim-treesitter#5852 |
v1.0.0 of what? Neither hyprlang nor hyprland are going to get 1.0, probably ever. |
Can't the grammar be activated by file-types? Something like |
@fufexan @vaxerski |
fwiw in hyprcursor I've used |
Hi,
after refining a treesitter implementation (luckasRanarison/tree-sitter-hyprlang) for nvim, we had to work around filetype detection with path logic. A unique file extension for hyprlang files would be way easier to enable highlighting, formatting, even lsp (if there will be one).
Are there any plans to introduce something like *.hypl?
Kind regards
Alexander
The text was updated successfully, but these errors were encountered: