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-*) 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}"
|
||||
|
|
Loading…
Reference in New Issue
Block a user