Add meta tag for responsiviness

The usual `html:5_` snippet does not have the meta tag with the contents
`name="viewport" content="width=device-width, initial-scale=1"`, which
allows the website to be responsive.
This commit is contained in:
Tiago Rinaldi
2020-07-17 14:18:14 -03:00
parent dc6cb4fd07
commit 90fa3f7936

View File

@@ -371,13 +371,13 @@ endfunction
function! emmet#getFileType(...) abort
let flg = get(a:000, 0, 0)
if has_key(s:emmet_settings, &filetype)
let type = &filetype
if emmet#getResource(type, 'ignore_embeded_filetype', 0)
return type
return type
endif
endif
endif
let pos = emmet#util#getcurpos()
let type = synIDattr(synID(max([pos[1], 1]), max([pos[2], 1]), 1), 'name')
@@ -1737,6 +1737,7 @@ let s:emmet_settings = {
\ ."<html lang=\"${lang}\">\n"
\ ."<head>\n"
\ ."\t<meta charset=\"${charset}\">\n"
\ ."\t<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n"
\ ."\t<title></title>\n"
\ ."</head>\n"
\ ."<body>\n\t${child}|\n</body>\n"