diff options
author | Christian Clason <c.clason@uni-graz.at> | 2024-11-11 22:30:04 +0100 |
---|---|---|
committer | Christian Clason <ch.clason+github@icloud.com> | 2024-11-12 08:18:38 +0100 |
commit | 295f98c8e0d991bdf336d1300abafaa4cad841d1 (patch) | |
tree | d5f471bd5f79ee52c6d6e988f655e9384b22baaa | |
parent | c026a114b51222c7d858947ef8caef48813c3674 (diff) | |
download | rneovim-295f98c8e0d991bdf336d1300abafaa4cad841d1.tar.gz rneovim-295f98c8e0d991bdf336d1300abafaa4cad841d1.tar.bz2 rneovim-295f98c8e0d991bdf336d1300abafaa4cad841d1.zip |
vim-patch:9.1.0853: filetype: kubernetes config file not recognized
Problem: filetype: kubernetes config file not recognized
Solution: detect '/.kube/config' file as yaml filetype
(Jonathan Lopez)
closes: vim/vim#11076
https://github.com/vim/vim/commit/6fbf63de865001dedafc227465e651926cf6f6dc
Co-authored-by: Jonathan Lopez <jonathanglopez@gmail.com>
-rw-r--r-- | runtime/lua/vim/filetype.lua | 1 | ||||
-rw-r--r-- | test/old/testdir/test_filetype.vim | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/runtime/lua/vim/filetype.lua b/runtime/lua/vim/filetype.lua index eda4c6a479..f22d814647 100644 --- a/runtime/lua/vim/filetype.lua +++ b/runtime/lua/vim/filetype.lua @@ -2148,6 +2148,7 @@ local pattern = { ['/sway/config$'] = 'swayconfig', ['/%.cargo/config$'] = 'toml', ['/%.bundle/config$'] = 'yaml', + ['/%.kube/config$'] = 'yaml', }, ['/%.'] = { ['/%.aws/credentials$'] = 'confini', diff --git a/test/old/testdir/test_filetype.vim b/test/old/testdir/test_filetype.vim index f957eb23a1..ec710f461a 100644 --- a/test/old/testdir/test_filetype.vim +++ b/test/old/testdir/test_filetype.vim @@ -882,7 +882,8 @@ 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', 'any/.bundle/config', '.clangd', '.clang-format', '.clang-tidy', 'file.mplstyle', 'matplotlibrc', 'yarn.lock', + \ '/home/user/.kube/config'], \ 'yang': ['file.yang'], \ 'yuck': ['file.yuck'], \ 'z8a': ['file.z8a'], |