mirror of
https://github.com/mattn/emmet-vim.git
synced 2025-12-22 18:31:26 +08:00
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:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user