]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.1.1775: filetype: Mamba configuration files are not recognized v9.1.1775
authorSamuel Huang <hi@sgh.ng>
Thu, 18 Sep 2025 20:28:53 +0000 (20:28 +0000)
committerChristian Brabandt <cb@256bit.org>
Thu, 18 Sep 2025 20:28:53 +0000 (20:28 +0000)
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: #18338

Signed-off-by: Samuel Huang <hi@sgh.ng>
Signed-off-by: Christian Brabandt <cb@256bit.org>
runtime/filetype.vim
src/testdir/test_filetype.vim
src/version.c

index 934e4042f605780e7e3690c6bdf537cdad3ffcf0..06167c72747120eabdf8e5238a86a3db20fb7384 100644 (file)
@@ -630,6 +630,9 @@ au BufNewFile,BufRead lynx.cfg                      setf lynx
 " LyRiCs
 au BufNewFile,BufRead *.lrc                    setf lyrics
 
+" Mamba configuration file
+au BufNewFile,BufRead .mambarc,mambarc         setf yaml
+
 " MLIR
 au BufNewFile,BufRead *.mlir                   setf mlir
 
index 7aa3197875a8c7ee0d38ce13228039fc07c36950..5dc91696c4828401aa765b369549b20e29723772 100644 (file)
@@ -935,7 +935,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', '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'],
index a1e0521959322d8b310d349471994f374a288ff5..c79b2b23bd8e06e36fe3a2fbb2058ed35f93dc50 100644 (file)
@@ -724,6 +724,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1775,
 /**/
     1774,
 /**/