patch 9.1.1718: filetype: kubectl config file is not recognized

Problem:  filetype: kubectl config file is not recognized
Solution: Detect .kube/kubectl as yaml filetype
          (Volodymyr Chernetskyi).

References:
- https://kubernetes.io/docs/reference/kubectl/kuberc/

closes: #18169

Signed-off-by: Volodymyr Chernetskyi <19735328+chernetskyi@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
Volodymyr Chernetskyi
2025-08-31 19:29:01 +02:00
committed by Christian Brabandt
parent be0589f1d2
commit 6cd6857cbe
3 changed files with 4 additions and 2 deletions

View File

@ -3064,7 +3064,7 @@ au BufNewFile,BufRead *.y call dist#ft#FTy()
" Yaml
au BufNewFile,BufRead *.yaml,*.yml,*.eyaml setf yaml
au BufNewFile,BufRead */.kube/config setf yaml
au BufNewFile,BufRead */.kube/config,*/.kube/kuberc setf yaml
" Raml
au BufNewFile,BufRead *.raml setf raml