emmet-vim completion source for nvim-cmp.
- Snippet expansion/jumping with your favorite snippet manager
- Snippet completion/preview
- Takes advantage of treesitter for filetype detection
- Doesn't require an extra LSP or Node
Install using your favorite plugin manager:
Plug 'dcampos/cmp-emmet-vim'
Enable:
require 'cmp'.setup {
sources = {
{ name = 'emmet_vim' }
}
}
Note: if you don't have mattn/emmet-vim
, install it first:
Plug 'mattn/emmet-vim'
Currently there is a single option available.
require 'cmp'.setup {
sources = {
{
name = 'emmet_vim',
option = {
filetypes = { ... },
}
}
}
}
Default: { 'html', 'xml', 'typescriptreact', 'javascriptreact', 'css', 'sass', 'scss', 'less', 'heex', 'tsx', 'jsx' }
Filetypes, including embedded filetypes, for which to enable this source.
- jackieaskins/cmp-emmet
- aca/emmet-ls
- thendo-rambane/emmet-compe (deprecated)