mirror of
https://github.com/neovim/neovim.git
synced 2025-09-23 03:28:33 +00:00
vim-patch:9.1.1775: filetype: Mamba configuration files are not recognized #35829
Problem: filetype: Mamba configuration files are not recognized
Solution: Detect .mambarc and mambarc as yaml filetype (Samuel Huang).
References:
- https://mamba.readthedocs.io/en/latest/user_guide/configuration.html
closes: vim/vim#18338
21a21eafec
This commit is contained in:
@@ -1953,6 +1953,8 @@ local filename = {
|
||||
matplotlibrc = 'yaml',
|
||||
['.condarc'] = 'yaml',
|
||||
condarc = 'yaml',
|
||||
['.mambarc'] = 'yaml',
|
||||
mambarc = 'yaml',
|
||||
zathurarc = 'zathurarc',
|
||||
['/etc/zprofile'] = 'zsh',
|
||||
['.zlogin'] = 'zsh',
|
||||
|
@@ -932,7 +932,7 @@ func s:GetFilenameChecks() abort
|
||||
\ 'xslt': ['file.xsl', 'file.xslt'],
|
||||
\ 'yacc': ['file.yy', 'file.yxx', 'file.y++'],
|
||||
\ 'yaml': ['file.yaml', 'file.yml', 'file.eyaml', 'file.kyaml', 'file.kyml', 'any/.bundle/config', '.clangd', '.clang-format', '.clang-tidy', 'file.mplstyle', 'matplotlibrc', 'yarn.lock',
|
||||
\ '/home/user/.kube/config', '/home/user/.kube/kuberc', '.condarc', 'condarc', 'pixi.lock'],
|
||||
\ '/home/user/.kube/config', '/home/user/.kube/kuberc', '.condarc', 'condarc', '.mambarc', 'mambarc', 'pixi.lock'],
|
||||
\ 'yang': ['file.yang'],
|
||||
\ 'yuck': ['file.yuck'],
|
||||
\ 'z8a': ['file.z8a'],
|
||||
|
Reference in New Issue
Block a user