https://github.com/tree-sitter-grammars/tree-sitter-hyprlang
hyprlang grammar for tree-sitter
https://github.com/tree-sitter-grammars/tree-sitter-hyprlang
hyprlang parser tree-sitter
Last synced: 18 days ago
JSON representation
hyprlang grammar for tree-sitter
- Host: GitHub
- URL: https://github.com/tree-sitter-grammars/tree-sitter-hyprlang
- Owner: tree-sitter-grammars
- License: mit
- Created: 2023-08-18T19:40:14.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2025-01-21T05:19:14.000Z (3 months ago)
- Last Synced: 2025-04-02T04:04:55.322Z (21 days ago)
- Topics: hyprlang, parser, tree-sitter
- Language: JavaScript
- Homepage:
- Size: 201 KB
- Stars: 135
- Watchers: 4
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# tree-sitter-hyprlang
[hyprlang](https://github.com/hyprwm/hyprlang) grammar for [tree-sitter](https://github.com/tree-sitter/tree-sitter).
## Neovim
You can install the hyprlang parser in neovim using [nvim-treesitter](https://github.com/nvim-treesitter/nvim-treesitter) and use the following code snippet for automatic filetype detection:
```lua
vim.filetype.add({
pattern = { [".*/hypr/.*%.conf"] = "hyprlang" },
})
```