vim.cmd([[ autocmd BufNewFile,BufRead */chezmoi/*.tmpl execute 'set filetype='..matchlist(expand(''), '.*\.\(.*\)\.tmpl$')[1] ]])