From eefb50e352a689ec1a0a55d6827abea79960cd3d Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Thu, 9 Apr 2026 07:11:20 +0800 Subject: vim-patch:9.2.0323: filetype: buf.lock files are not recognized (#38897) Problem: filetype: buf.lock files are not recognized Solution: Detect buf.lock files as yaml filetype (Stefan VanBuren) Reference: https://buf.build/docs/configuration/v2/buf-lock/ closes: vim/vim#19935 https://github.com/vim/vim/commit/c2734dc03cd9ee437d25a6940e8c37ac7873b01d Co-authored-by: Stefan VanBuren --- runtime/lua/vim/filetype.lua | 1 + 1 file changed, 1 insertion(+) (limited to 'runtime/lua/vim') diff --git a/runtime/lua/vim/filetype.lua b/runtime/lua/vim/filetype.lua index 83f07afb76..e2dbdcdd60 100644 --- a/runtime/lua/vim/filetype.lua +++ b/runtime/lua/vim/filetype.lua @@ -2035,6 +2035,7 @@ local filename = { ['.clangd'] = 'yaml', ['.clang-format'] = 'yaml', ['.clang-tidy'] = 'yaml', + ['buf.lock'] = 'yaml', ['pixi.lock'] = 'yaml', ['yarn.lock'] = 'yaml', matplotlibrc = 'yaml', -- cgit