mirror of
https://github.com/zoriya/vim-helm.git
synced 2025-12-06 06:46:11 +00:00
Fix ftdetect with other protocols (like oil://)
This commit is contained in:
@@ -3,7 +3,7 @@ function! s:isHelm()
|
||||
let filename = expand("%:t")
|
||||
if filepath =~ '\v/(templates|charts)/.*\.(ya?ml|gotmpl|tpl|txt)$' | return 1 | en
|
||||
if filename =~ '\v(helmfile).ya?ml' | return 1 | en
|
||||
if !empty(findfile("Chart.yaml", expand('%:p:h').';')) | return 1 | en
|
||||
if filepath !~ '\v^\w+://' && !empty(findfile("Chart.yaml", expand('%:p:h').';')) | return 1 | en
|
||||
return 0
|
||||
endfunction
|
||||
|
||||
|
||||
Reference in New Issue
Block a user