Skip to content

Commit

Permalink
patch 9.1.0853: filetype: kubernetes config file not recognized
Browse files Browse the repository at this point in the history
Problem:  filetype: kubernetes config file not recognized
Solution: detect '/.kube/config' file as yaml filetype
          (Jonathan Lopez)

closes: #11076

Signed-off-by: Jonathan Lopez <[email protected]>
Signed-off-by: Christian Brabandt <[email protected]>
  • Loading branch information
otherJL0 authored and chrisbra committed Nov 11, 2024
1 parent 45e0704 commit 6fbf63d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions runtime/filetype.vim
Original file line number Diff line number Diff line change
Expand Up @@ -2919,6 +2919,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

" Raml
au BufNewFile,BufRead *.raml setf raml
Expand Down
3 changes: 2 additions & 1 deletion src/testdir/test_filetype.vim
Original file line number Diff line number Diff line change
Expand Up @@ -885,7 +885,8 @@ def s:GetFilenameChecks(): dict<list<string>>
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'],
Expand Down
2 changes: 2 additions & 0 deletions src/version.c
Original file line number Diff line number Diff line change
Expand Up @@ -704,6 +704,8 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
/**/
853,
/**/
852,
/**/
Expand Down

0 comments on commit 6fbf63d

Please sign in to comment.