vim-patch:9.1.0926: filetype: Pixi lock files are not recognized

Problem:  filetype: Pixi lock files are not recognized
Solution: detect "pixi.lock" file as yaml filetype
          (Brandon Maier)

Reference:
https://pixi.sh/latest/features/lockfile/

closes: vim/vim#16212

7d1bb90dcf

Co-authored-by: Brandon Maier <brandon.maier@gmail.com>
This commit is contained in:
Christian Clason 2024-12-15 12:04:33 +01:00 committed by Christian Clason
parent 820984daea
commit 6c2c77b128
2 changed files with 2 additions and 1 deletions

View File

@ -1874,6 +1874,7 @@ local filename = {
['.clangd'] = 'yaml', ['.clangd'] = 'yaml',
['.clang-format'] = 'yaml', ['.clang-format'] = 'yaml',
['.clang-tidy'] = 'yaml', ['.clang-tidy'] = 'yaml',
['pixi.lock'] = 'yaml',
['yarn.lock'] = 'yaml', ['yarn.lock'] = 'yaml',
matplotlibrc = 'yaml', matplotlibrc = 'yaml',
['.condarc'] = 'yaml', ['.condarc'] = 'yaml',

View File

@ -890,7 +890,7 @@ func s:GetFilenameChecks() abort
\ 'xslt': ['file.xsl', 'file.xslt'], \ 'xslt': ['file.xsl', 'file.xslt'],
\ 'yacc': ['file.yy', 'file.yxx', 'file.y++'], \ 'yacc': ['file.yy', 'file.yxx', 'file.y++'],
\ 'yaml': ['file.yaml', 'file.yml', 'file.eyaml', 'any/.bundle/config', '.clangd', '.clang-format', '.clang-tidy', 'file.mplstyle', 'matplotlibrc', 'yarn.lock', \ 'yaml': ['file.yaml', 'file.yml', 'file.eyaml', 'any/.bundle/config', '.clangd', '.clang-format', '.clang-tidy', 'file.mplstyle', 'matplotlibrc', 'yarn.lock',
\ '/home/user/.kube/config', '.condarc', 'condarc'], \ '/home/user/.kube/config', '.condarc', 'condarc', 'pixi.lock'],
\ 'yang': ['file.yang'], \ 'yang': ['file.yang'],
\ 'yuck': ['file.yuck'], \ 'yuck': ['file.yuck'],
\ 'z8a': ['file.z8a'], \ 'z8a': ['file.z8a'],