Skip to content

Latest commit

 

History

History
69 lines (50 loc) · 1.38 KB

README.md

File metadata and controls

69 lines (50 loc) · 1.38 KB

cmp-emmet-vim

emmet-vim completion source for nvim-cmp.

Features

  • 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

Setup

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'

Configuration

Currently there is a single option available.

require 'cmp'.setup {
  sources = {
    {
        name = 'emmet_vim',
        option = {
            filetypes = { ... },
        }
    }
  }
}

filetypes (type: string[])

Default: { 'html', 'xml', 'typescriptreact', 'javascriptreact', 'css', 'sass', 'scss', 'less', 'heex', 'tsx', 'jsx' }

Filetypes, including embedded filetypes, for which to enable this source.

Related projects