Skip to content

dcampos/cmp-emmet-vim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

emmet-vim completion source for nvim-cmp.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages