From 4b5cd7257ee99384940d5210cf50298ff925924e Mon Sep 17 00:00:00 2001 From: "Wu, Zhenyu" Date: Sat, 13 Apr 2024 18:28:28 +0200 Subject: patch 9.1.0318: filetype: translate shell config files are not recognized Problem: filetype: translate shell config files are not recognized Solution: Detect 'init.trans', 'translate-shell' and '.trans' files as clojure (Wu, Zhenyu) See: https://github.com/soimort/translate-shell/wiki/Configuration closes: #14499 Signed-off-by: Wu, Zhenyu Signed-off-by: Christian Brabandt --- runtime/filetype.vim | 3 +++ 1 file changed, 3 insertions(+) (limited to 'runtime/filetype.vim') diff --git a/runtime/filetype.vim b/runtime/filetype.vim index 96ecb1aaae..bdf2d6c6fe 100644 --- a/runtime/filetype.vim +++ b/runtime/filetype.vim @@ -1017,6 +1017,9 @@ au BufRead,BufNewFile *.hoon setf hoon " Tilde (must be before HTML) au BufNewFile,BufRead *.t.html setf tilde +" Translate shell +au BufNewFile,BufRead init.trans,*/etc/translate-shell,.trans setf clojure + " HTML (.shtml and .stm for server side) au BufNewFile,BufRead *.html,*.htm,*.shtml,*.stm call dist#ft#FThtml() au BufNewFile,BufRead *.cshtml setf html -- cgit v1.2.3