Add application media-type to file-type detection

This commit is contained in:
Alex Leferry 2 2018-03-14 17:04:03 +01:00
parent 6f2b093eec
commit 1ede2b89bb

View File

@ -8,6 +8,7 @@ hook global BufOpenFile .* %{ %sh{
text/x-shellscript) filetype="sh" ;;
text/x-*) filetype="${mime#text/x-}" ;;
text/*) filetype="${mime#text/}" ;;
application/*) filetype="${mime#application/}" ;;
esac
if [ -n "${filetype}" ]; then
printf "set-option buffer filetype '%s'\n" "${filetype}"