mirror of
https://github.com/neovim/neovim.git
synced 2026-04-18 05:20:40 +00:00
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
c2734dc03c
Co-authored-by: Stefan VanBuren <svanburen@buf.build>
This commit is contained in:
@@ -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',
|
||||
|
||||
@@ -990,7 +990,7 @@ func s:GetFilenameChecks() abort
|
||||
\ 'xslt': ['file.xsl', 'file.xslt'],
|
||||
\ 'yacc': ['file.yy', 'file.yxx', 'file.y++'],
|
||||
\ 'yaml': ['file.yaml', 'file.yml', 'file.eyaml', 'file.kyaml', 'file.kyml', 'any/.bundle/config', '.clangd', '.clang-format', '.clang-tidy', 'file.mplstyle', 'matplotlibrc', 'yarn.lock',
|
||||
\ '/home/user/.kube/config', '/home/user/.kube/kuberc', '.condarc', 'condarc', '.mambarc', 'mambarc', 'pixi.lock'],
|
||||
\ '/home/user/.kube/config', '/home/user/.kube/kuberc', '.condarc', 'condarc', '.mambarc', 'mambarc', 'pixi.lock', 'buf.lock'],
|
||||
\ 'yang': ['file.yang'],
|
||||
\ 'yara': ['file.yara', 'file.yar'],
|
||||
\ 'yuck': ['file.yuck'],
|
||||
|
||||
Reference in New Issue
Block a user