Add application media-type to file-type detection
This commit is contained in:
parent
6f2b093eec
commit
1ede2b89bb
|
@ -8,6 +8,7 @@ hook global BufOpenFile .* %{ %sh{
|
||||||
text/x-shellscript) filetype="sh" ;;
|
text/x-shellscript) filetype="sh" ;;
|
||||||
text/x-*) filetype="${mime#text/x-}" ;;
|
text/x-*) filetype="${mime#text/x-}" ;;
|
||||||
text/*) filetype="${mime#text/}" ;;
|
text/*) filetype="${mime#text/}" ;;
|
||||||
|
application/*) filetype="${mime#application/}" ;;
|
||||||
esac
|
esac
|
||||||
if [ -n "${filetype}" ]; then
|
if [ -n "${filetype}" ]; then
|
||||||
printf "set-option buffer filetype '%s'\n" "${filetype}"
|
printf "set-option buffer filetype '%s'\n" "${filetype}"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user