From 816fbe43b5dc15edcafa0b32785a4972fb34e67f Mon Sep 17 00:00:00 2001 From: Manuel Date: Tue, 25 Jul 2023 09:02:12 +0200 Subject: [PATCH] fix: correct filetype assignments (#359) Docs say that `*.gotext` should be recognized as `gotexttmpl` but that is not the case. I also changed `*.tmpl` to `gotexttmpl` since that is how I use it - not certain if that would be acceptable to everyone though. --- ftdetect/filetype.vim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ftdetect/filetype.vim b/ftdetect/filetype.vim index ddfabab..97f68c2 100644 --- a/ftdetect/filetype.vim +++ b/ftdetect/filetype.vim @@ -3,7 +3,8 @@ set cpo&vim au BufRead,BufNewFile *.go setfiletype go au BufRead,BufNewFile *.s setfiletype asm -au BufRead,BufNewFile *.tmpl set filetype=gohtmltmpl +au BufRead,BufNewFile *.tmpl set filetype=gotexttmpl +au BufRead,BufNewFile *.gotext set filetype=gotexttmpl au BufRead,BufNewFile *.gohtml set filetype=gohtmltmpl au BufRead,BufNewFile go.sum set filetype=gosum au BufRead,BufNewFile go.work.sum set filetype=gosum