From a210a8c0bb473c53c3c75a0194db8a4485e3acce Mon Sep 17 00:00:00 2001 From: Zoe Roux Date: Tue, 21 May 2024 15:47:20 +0200 Subject: [PATCH] Fix ftdetect with other protocols (like oil://) --- ftdetect/helm.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ftdetect/helm.vim b/ftdetect/helm.vim index ff4bb54..76f050a 100644 --- a/ftdetect/helm.vim +++ b/ftdetect/helm.vim @@ -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