Automatically detect script filetype when typing

This commit is contained in:
Adam Stankiewicz
2020-09-10 15:40:27 +02:00
parent 1eed30b2af
commit 9243367ba3
4 changed files with 43 additions and 26 deletions

View File

@@ -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 = {