tree-sitter-grammars / tree-sitter-hyprlang

hyprlang grammar for tree-sitter
MIT License
116 stars 2 forks source link

Recognize more than the default config file #7

Closed matt1432 closed 10 months ago

matt1432 commented 10 months ago

I basically changed the lua-pattern to recognize all .conf files that live under a hypr folder to support more than just the .config directory.

This is useful in cases where your config isn't located in .config, which is usually the case for Nix users.

For example, my hyprland config is located at ~/.nix/devices/wim/config/hypr/main.conf, which is recognized with this pattern.