From 9243367ba376050621e4c05e8f0439742c1f0f82 Mon Sep 17 00:00:00 2001 From: Adam Stankiewicz Date: Thu, 10 Sep 2020 15:40:27 +0200 Subject: Automatically detect script filetype when typing --- scripts/build | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'scripts/build') diff --git a/scripts/build b/scripts/build index 03c005c4..982e0f3a 100755 --- a/scripts/build +++ b/scripts/build @@ -559,8 +559,10 @@ def generate_ftdetect(packages, heuristics) let l:filetype = polyglot#Shebang() if l:filetype != "" exec "setf " . l:filetype - return + return 1 endif + + return 0 endfunc let s:interpreters = { -- cgit v1.2.3