feat(buf_ls): add filetype for buf config files#4384
Merged
justinmk merged 1 commit intoneovim:masterfrom Apr 10, 2026
Merged
Conversation
The next release of `buf` will include LSP features that include support for buf config files. This follows the approach that other LSPs follow for specifying custom filetypes (a comment + adding that custom filetype to filetypes).
95319ee to
7c5a21c
Compare
stefanvanburen
commented
Apr 10, 2026
| --- Optionally, tell treesitter to treat buf config files as YAML for syntax highlighting: | ||
| --- | ||
| --- ```lua | ||
| --- vim.treesitter.language.register('yaml', 'buf-config') |
Contributor
Author
There was a problem hiding this comment.
this might be moot with vim/vim#19935 / neovim/neovim#38897, since all of the extensions / names are taken care of upstream...
stefanvanburen
added a commit
to stefanvanburen/dotfiles
that referenced
this pull request
Apr 10, 2026
* Drop ~p00f/ colorschemes; the added treesitter queries seem to be breaking despite them not being activated at all, which is annoying * Disable max_lines warning in diffs.nvim * Effectively disable mini-completion auto-completion. May end up just backing it out altogether. The completion running all the time causes a lot of lag. * Add support for buf-config filetype for buf config files. Ref: neovim/nvim-lspconfig#4384
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The next release of
bufwill include LSP features that include support for buf config files. This follows the approach that other LSPs follow for specifying custom filetypes (a comment + adding that custom filetype to filetypes).Ref: bufbuild/buf#4438