mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 19:38:20 +00:00
vim-patch:9.1.0317: filetype: matplotlibrc files are not recognized
Problem: filetype: matplotlibrc files are not recognized
Solution: Detect 'matplotlibrc' file as yaml filetype
(Wu, Zhenyu)
See: https://matplotlib.org/stable/users/explain/customizing.html#the-matplotlibrc-file
closes: vim/vim#14501
55d4f3c006
Co-authored-by: Wu, Zhenyu <wuzhenyu@ustc.edu>
This commit is contained in:
@@ -1660,6 +1660,7 @@ local filename = {
|
|||||||
['.clang-format'] = 'yaml',
|
['.clang-format'] = 'yaml',
|
||||||
['.clang-tidy'] = 'yaml',
|
['.clang-tidy'] = 'yaml',
|
||||||
['yarn.lock'] = 'yaml',
|
['yarn.lock'] = 'yaml',
|
||||||
|
matplotlibrc = 'yaml',
|
||||||
zathurarc = 'zathurarc',
|
zathurarc = 'zathurarc',
|
||||||
['/etc/zprofile'] = 'zsh',
|
['/etc/zprofile'] = 'zsh',
|
||||||
['.zlogin'] = 'zsh',
|
['.zlogin'] = 'zsh',
|
||||||
|
@@ -837,7 +837,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', 'any/.bundle/config', '.clangd', '.clang-format', '.clang-tidy', 'file.mplstyle', 'yarn.lock'],
|
\ 'yaml': ['file.yaml', 'file.yml', 'file.eyaml', 'any/.bundle/config', '.clangd', '.clang-format', '.clang-tidy', 'file.mplstyle', 'matplotlibrc', 'yarn.lock'],
|
||||||
\ 'yang': ['file.yang'],
|
\ 'yang': ['file.yang'],
|
||||||
\ 'yuck': ['file.yuck'],
|
\ 'yuck': ['file.yuck'],
|
||||||
\ 'z8a': ['file.z8a'],
|
\ 'z8a': ['file.z8a'],
|
||||||
|
Reference in New Issue
Block a user