neoclide / coc-emmet

Emmet extension for coc.nvim
178 stars 9 forks source link

Custom snippets not available in autocomplete #28

Closed lightcap closed 4 years ago

lightcap commented 4 years ago

Custom snippets don't show up in the suggestions when following the README at mattn/emmet-vim to add them to emmet-vim.

let g:user_emmet_settings = webapi#json#decode(join(readfile(expand('~/.snippets_custom.json')), "\n"))

They'll work fine with the emmet keystrokes, but not Coc. Is this intended?

projec corporate-web) - NVIM 2020-08-25 15-02-34

chemzqm commented 4 years ago

It is expected, since coc-emmet can't load snippets from emmet-vim. Maybe emmet-vim could expose a function that could provide snippets.