mirror of
https://github.com/neovim/neovim.git
synced 2024-12-23 20:55:18 -07:00
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
6fbf63de86
Co-authored-by: Jonathan Lopez <jonathanglopez@gmail.com>
This commit is contained in:
parent
c026a114b5
commit
295f98c8e0
@ -2148,6 +2148,7 @@ local pattern = {
|
||||
['/sway/config$'] = 'swayconfig',
|
||||
['/%.cargo/config$'] = 'toml',
|
||||
['/%.bundle/config$'] = 'yaml',
|
||||
['/%.kube/config$'] = 'yaml',
|
||||
},
|
||||
['/%.'] = {
|
||||
['/%.aws/credentials$'] = 'confini',
|
||||
|
@ -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'],
|
||||
|
Loading…
Reference in New Issue
Block a user