linguist icon indicating copy to clipboard operation
linguist copied to clipboard

Configuration .conf files

Open Hydradevx opened this issue 3 months ago • 3 comments

Language name

Config

URL of example repository

https://github.com/HyDE-Project/HyDE

URL of syntax highlighting grammar

None generated for

Most popular extensions

.conf

Detected language

None

Hydradevx avatar Sep 10 '25 09:09 Hydradevx

This is widely used through every hyprland and other linux rice. I think it is an important addition

Hydradevx avatar Sep 10 '25 09:09 Hydradevx

This can't and won't be implemented as there is not a single unified "Configuration file" language.

.conf is an incredibly common and generic extension and is associated with files written in a wide range of languages including INI, TOML, JSON, XML and a whole slew of other unique languages/formats. As such, support for each .conf file would need to be added to the respective languages the file is actually written in. As this is incredibly common and generic, a 100% precise heuristic will need to be added too so the files are correctly classified.

We already support a few .conf files, but only ones that can be identified by name because of the above complexity.

This is widely used through every hyprland and other linux rice.

Hyprland config files are written in their own language - hyprlang - however you can't just add hyprlang as a language with .conf as the extension as this would classify every .conf file as hyperlang. You'd need to start with adding support for just the hyprland.conf file and then users can use an override for other hyperlang files if they wish.

Usage of hyprland.conf is sufficiently popular for addition now (search results) if you want to do it. You can find details in the CONTRIBUTING.md file.

lildude avatar Sep 10 '25 10:09 lildude

ok.

Hydradevx avatar Sep 15 '25 16:09 Hydradevx