mirror of
https://github.com/neovim/neovim.git
synced 2024-12-19 02:34:59 -07:00
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:
parent
820984daea
commit
6c2c77b128
@ -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',
|
||||||
|
@ -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'],
|
||||||
|
Loading…
Reference in New Issue
Block a user