Skip to content

Conversation

@rmuir
Copy link
Contributor

@rmuir rmuir commented Sep 2, 2025

Terraform is a different treesitter parser than hcl, but for aerial purposes these are the same. Support hcl also, it is helpful for docker bake files at least.

ssh_config / editorconfig are a few more "devops" formats with simple "sections", aerial helps when the files are large. The editorconfig pattern is a bit strange, but this is due to the grammar: any fancy stuff such as not-kind-eq is avoided since this predicate isn't in neovim core.

Terraform is a different treesitter parser than hcl, but for aerial purposes these are the same.
Support hcl also, it is helpful for docker bake files at least.

ssh_config / editorconfig are a few more "devops" formats with simple "sections", aerial helps when
the files are large. The editorconfig pattern is a bit strange, but this is due to the grammar:
any fancy stuff such as `not-kind-eq` is avoided since this predicate isn't in neovim core.

Signed-off-by: Robert Muir <[email protected]>
@github-actions github-actions bot requested a review from stevearc September 2, 2025 05:49
@rmuir
Copy link
Contributor Author

rmuir commented Sep 2, 2025

This PR may seem a bit crazy, as you might normally consider some of these files to be tiny... but I've got > ~1K lines for all of them. For example, java editorconfigs with all the intellij formatting cases get big: https://github.com/apache/lucene/blob/main/.editorconfig

@stevearc
Copy link
Owner

LGTM thanks for the PR and for adding tests!

@stevearc stevearc merged commit 99a5fb8 into stevearc:master Sep 27, 2025
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants