patch 9.1.0902: filetype: Conda configuration files are not recognized
Problem: filetype: Conda configuration files are not recognized
Solution: detect '.condarc' and 'condarc' files as yaml filetype.
(zeertzjq)
closes: #16162
Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
committed by
Christian Brabandt
parent
b534e80008
commit
876de275cb
@ -452,6 +452,9 @@ au BufNewFile,BufRead .clang-format setf yaml
|
||||
" Clang-tidy
|
||||
au BufNewFile,BufRead .clang-tidy setf yaml
|
||||
|
||||
" Conda configuration file
|
||||
au BufNewFile,BufRead .condarc,condarc setf yaml
|
||||
|
||||
" Matplotlib
|
||||
au BufNewFile,BufRead *.mplstyle,matplotlibrc setf yaml
|
||||
|
||||
|
||||
@ -889,7 +889,7 @@ def s:GetFilenameChecks(): dict<list<string>>
|
||||
xslt: ['file.xsl', 'file.xslt'],
|
||||
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',
|
||||
'/home/user/.kube/config'],
|
||||
'/home/user/.kube/config', '.condarc', 'condarc'],
|
||||
yang: ['file.yang'],
|
||||
yuck: ['file.yuck'],
|
||||
z8a: ['file.z8a'],
|
||||
|
||||
@ -704,6 +704,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
902,
|
||||
/**/
|
||||
901,
|
||||
/**/
|
||||
|
||||
Reference in New Issue
Block a user