chore(flake): update inputs

This commit is contained in:
Felix Schröter 2020-10-11 10:50:44 +02:00
parent 126db04668
commit 3f51088fb3
No known key found for this signature in database
GPG key ID: 910ACB9F6BD26F58
2 changed files with 32 additions and 9 deletions

View file

@ -0,0 +1,23 @@
if did_filetype()
finish
endif
if getline(1) =~ '^#!.*nix-shell'
let s:matches = matchlist(getline(2), '^#!.*nix-shell -i \([^ \t\n]\+\)')
let s:command = s:matches[1]
echo s:command
if s:command != ''
if s:command =~# '^\(bash\d*\|\|ksh\d*\|sh\)\>'
call dist#ft#SetFileTypeSH(s:command)
elseif s:command == 'zsh'
set ft=zsh
elseif s:command =~ '^gnumake\d*\>'
set ft=make
elseif s:command =~ '^nodejs'
set ft=javascript
elseif s:command =~ '^ghc'
set ft=haskell
elseif s:command =~ '^python'
set ft=python
endif
endif
endif