2 Commits

Author SHA1 Message Date
Tiago Rinaldi
11f2d05d81 Merge 90fa3f7936 into 6c511a8d7d 2024-10-21 11:06:42 +01:00
Tiago Rinaldi
90fa3f7936 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.
2020-07-17 14:18:26 -03:00

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
if get(g:, 'loaded_nvim_treesitter', 0)
let type = luaeval('require"emmet_utils".get_node_at_cursor()')
@@ -430,7 +430,7 @@ function! emmet#getFileType(...) abort
endfor
endif
return empty(type) ? 'html' : type
return len(type) == 0 ? 'html' : type
endfunction
function! emmet#getDollarExprs(expand) abort
@@ -1759,6 +1759,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"