Skip to content

Commit

Permalink
feat(special name): Support external_ prefix of dir
Browse files Browse the repository at this point in the history
  • Loading branch information
alker0 committed Feb 2, 2023
1 parent b3f522d commit 4b08797
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion autoload/chezmoi/filetype.vim
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ function! chezmoi#filetype#handle_chezmoi_filetype() abort
elseif original_abs_path =~# s:special_path_patterns['external']
let options.need_name_fix = v:false
let options.enable_tmpl_force = v:true
elseif original_abs_path =~# s:special_path_patterns['other_dot_path']
elseif original_abs_path =~# s:special_path_patterns['external_dir'] ||
\ original_abs_path =~# s:special_path_patterns['other_dot_path']
return
endif

Expand Down Expand Up @@ -128,6 +129,7 @@ function! s:get_special_path_patterns() abort
" Ignoring below paths should not be a problem:
" .chezmoiversion
" .chezmoiroot
let patterns.external_dir = dir_prefix . '%([^/]+/){-}external_[^/]+/'
let patterns.other_dot_path = dir_prefix . other_dot_pattern
return patterns
endfunction
Expand Down

0 comments on commit 4b08797

Please sign in to comment.