mirror of
https://github.com/neovim/neovim.git
synced 2024-12-20 11:15:14 -07:00
vim-patch:9.1.0247: filetype: bundle config files are not recognized
Problem: filetype: bundle config files are not recognized
Solution: Detect '*/.bundle/config' as yaml
(Wu, Zhenyu)
closes: vim/vim#14368
3f6fa93b3b
Co-authored-by: Wu, Zhenyu <wuzhenyu@ustc.edu>
This commit is contained in:
parent
09869c3745
commit
de1a54dfe1
@ -2052,6 +2052,7 @@ local pattern = {
|
|||||||
-- Increase priority to run before the pattern below
|
-- Increase priority to run before the pattern below
|
||||||
['XF86Config%-4.*'] = starsetf(detect.xfree86_v4, { priority = -math.huge + 1 }),
|
['XF86Config%-4.*'] = starsetf(detect.xfree86_v4, { priority = -math.huge + 1 }),
|
||||||
['XF86Config.*'] = starsetf(detect.xfree86_v3),
|
['XF86Config.*'] = starsetf(detect.xfree86_v3),
|
||||||
|
['.*/%.bundle/config'] = 'yaml',
|
||||||
['%.zcompdump.*'] = starsetf('zsh'),
|
['%.zcompdump.*'] = starsetf('zsh'),
|
||||||
-- .zlog* and zlog*
|
-- .zlog* and zlog*
|
||||||
['%.?zlog.*'] = starsetf('zsh'),
|
['%.?zlog.*'] = starsetf('zsh'),
|
||||||
|
@ -742,7 +742,7 @@ func s:GetFilenameChecks() abort
|
|||||||
\ 'xsd': ['file.xsd'],
|
\ 'xsd': ['file.xsd'],
|
||||||
\ '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', '.clangd', '.clang-format', '.clang-tidy', 'file.mplstyle'],
|
\ 'yaml': ['file.yaml', 'file.yml', 'file.eyaml', 'any/.bundle/config', '.clangd', '.clang-format', '.clang-tidy', 'file.mplstyle'],
|
||||||
\ '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