neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

commit c333d64663d3b6e0dd9aa440e433d346af4a3d81
parent b3d29f396d7d8eac654d51dc972344977f71e016
Author: Volodymyr Chernetskyi <19735328+chernetskyi@users.noreply.github.com>
Date:   Fri, 29 Aug 2025 20:06:21 +0200

vim-patch:9.1.1709: filetype: kyaml files are not recognized

Problem:  filetype: kyaml files are not recognized
Solution: Detect *.kyml files as yaml filetype
          (Volodymyr Chernetskyi)

References:
- https://kubernetes.io/blog/2025/08/27/kubernetes-v1-34-release/#alpha-support-for-kyaml-a-kubernetes-dialect-of-yaml

closes: vim/vim#18158

https://github.com/vim/vim/commit/d5c89cc6bb6aa105abbd6ac07e4265e7da32d606

Co-authored-by: Volodymyr Chernetskyi <19735328+chernetskyi@users.noreply.github.com>

Diffstat:
Mruntime/lua/vim/filetype.lua | 2++
Mtest/old/testdir/test_filetype.vim | 2+-
2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/runtime/lua/vim/filetype.lua b/runtime/lua/vim/filetype.lua @@ -1392,6 +1392,8 @@ local extension = { yaml = 'yaml', eyaml = 'yaml', mplstyle = 'yaml', + kyaml = 'yaml', + kyml = 'yaml', grc = detect_line1('<%?xml', 'xml', 'yaml'), yang = 'yang', yuck = 'yuck', diff --git a/test/old/testdir/test_filetype.vim b/test/old/testdir/test_filetype.vim @@ -927,7 +927,7 @@ func s:GetFilenameChecks() abort \ 'xsd': ['file.xsd'], \ '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', + \ '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', '.condarc', 'condarc', 'pixi.lock'], \ 'yang': ['file.yang'], \ 'yuck': ['file.yuck'],