Closed ubrmnsh closed 2 years ago
html:5
does not expand meta viewport on https://docs.emmet.io/ Well Sir, thanks for this awesome vim-plugin, btw what we can do to have this functionality, any way out?
Please try to define your snippets.
let g:user_emmet_settings = {
\ 'variables': {'lang': 'ja'},
\ 'html': {
\ 'default_attributes': {
\ 'option': {'value': v:null},
\ 'textarea': {'id': v:null, 'name': v:null, 'cols': 10, 'rows': 10},
\ },
\ 'snippets': {
\ 'html:5': "<!DOCTYPE html>\n"
\ ."<html lang=\"${lang}\">\n"
\ ."<head>\n"
\ ."\t<meta charset=\"${charset}\">\n"
\ ."\t<title></title>\n"
\ ."\t<meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n"
\ ."</head>\n"
\ ."<body>\n\t${child}|\n</body>\n"
\ ."</html>",
\ },
\ },
\}
Please try to define your snippets.
let g:user_emmet_settings = { \ 'variables': {'lang': 'ja'}, \ 'html': { \ 'default_attributes': { \ 'option': {'value': v:null}, \ 'textarea': {'id': v:null, 'name': v:null, 'cols': 10, 'rows': 10}, \ }, \ 'snippets': { \ 'html:5': "<!DOCTYPE html>\n" \ ."<html lang=\"${lang}\">\n" \ ."<head>\n" \ ."\t<meta charset=\"${charset}\">\n" \ ."\t<title></title>\n" \ ."\t<meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n" \ ."</head>\n" \ ."<body>\n\t${child}|\n</body>\n" \ ."</html>", \ }, \ }, \}
It worked, You should update this on README.mkd.
Updated it.
Thank you
No need of it, always up for open source :)
html:5
does not expand meta viewport on https://docs.emmet.io/