Open ViOrise opened 5 years ago
I can't reproduce this. Where the section did you put the html:55
? It should be html
or *
.
I have a similar issue.
In my snippets_custom.json there's:
"doc": "html[lang=${lang}]>(head>meta[charset=${charset}]+meta:vp+title{${1:Document}})+body"
It expands to
MacOS, tmux, Vim8.2.
Was anyone able to figure this out ? I have a similar issue, even though :echo g:user_emmet_settings
outputs my json file
What is your &filetype?
What is your &filetype?
@mattn eruby
.
Edit:
I still have the issue when my &filetype is html
FIX UPDATE: I fixed all my problems by using Pathogen, it seems to add properly the web api to the run time, something that native vim or plug-vim didn't do properly.
I have a similar issue: This is my custom snippet file:
{
"html": {
"snippets": {
"img:1": "img[width height loading='lazy']"
}
},
"css": {
"snippets": {
}
}
}
In my nvim.init: Plug 'mattn/webapi-vim' ... let g:user_emmet_settings = webapi#json#decode(join(readfile(expand('~/.config/nvim/plug-config/snippets_custom.json')), "\n"))
And I get
Added custom snippets but them doesn't work correctly in html when i pushing emmet key button: