Skip to content

feat(buf_ls): add filetype for buf config files#4384

Merged
justinmk merged 1 commit intoneovim:masterfrom
stefanvanburen:svanburen/buf-config
Apr 10, 2026
Merged

feat(buf_ls): add filetype for buf config files#4384
justinmk merged 1 commit intoneovim:masterfrom
stefanvanburen:svanburen/buf-config

Conversation

@stefanvanburen
Copy link
Copy Markdown
Contributor

@stefanvanburen stefanvanburen commented Apr 10, 2026

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).

Ref: bufbuild/buf#4438

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).
@stefanvanburen stefanvanburen changed the title feat(buf_ls): Add filetype for buf config files feat(buf_ls): add filetype for buf config files Apr 10, 2026
Comment thread lsp/buf_ls.lua
--- Optionally, tell treesitter to treat buf config files as YAML for syntax highlighting:
---
--- ```lua
--- vim.treesitter.language.register('yaml', 'buf-config')
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this might be moot with vim/vim#19935 / neovim/neovim#38897, since all of the extensions / names are taken care of upstream...

@justinmk justinmk merged commit 9bafffa into neovim:master Apr 10, 2026
5 checks passed
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
@stefanvanburen stefanvanburen deleted the svanburen/buf-config branch April 10, 2026 15:14
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