Skip to content

Consolidate buf config files into separate filetype#618

Merged
stefanvanburen merged 2 commits intomainfrom
svanburen/consolidate-buf-config-type
Apr 17, 2026
Merged

Consolidate buf config files into separate filetype#618
stefanvanburen merged 2 commits intomainfrom
svanburen/consolidate-buf-config-type

Conversation

@stefanvanburen
Copy link
Copy Markdown
Member

Now that the LSP is starting to support buf config files (see #608), I noticed that we're now duplicating e.g. our hover documentation with that coming from yaml-language-server.

This consolidates the various buf config files handled by the LSP into a separate filetype, buf-config, so that these files aren't handled by yaml-language-server and other plugins. It adds a simple language configuration so that comments still work (yaml doesn't really have matching brackets in idiomatic usage), and the syntax just inherits from yaml.

Now that the LSP is starting to support buf config files (see #608),
I noticed that we're now duplicating e.g. our hover documentation with
that coming from yaml-language-server.

This consolidates the various buf config files handled by the LSP into
a separate filetype, `buf-config`, so that these files aren't handled by
yaml-language-server and other plugins. It adds a simple language
configuration so that comments still work (yaml doesn't really have
matching brackets in idiomatic usage), and the syntax just inherits from
yaml.
doriable
doriable previously approved these changes Apr 17, 2026
@stefanvanburen stefanvanburen merged commit a93ee63 into main Apr 17, 2026
5 checks passed
@stefanvanburen stefanvanburen deleted the svanburen/consolidate-buf-config-type branch April 17, 2026 19:23
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