jackieaskins / cmp-emmet

10 stars 2 forks source link

cmp-emmet

nvim-cmp source for Emmet.

Uses vscode-emmet-helper. Integrates with Treesitter to determine the language under the cursor.

Requirements

Installation

Install with your favorite package manager.

lazy

{ 'jackieaskins/cmp-emmet', build = 'npm run release'  }

packer

use({ 'jackieaskins/cmp-emmet', run = 'npm run release' })

vim-plug

Plug 'jackieaskins/cmp-emmet', { 'do': 'npm run release' }

Setup

require('cmp').setup({
  sources = {
    { name = 'emmet' }
  }
})

Alternatives

When I created this plugin, there were two main options: emmet-ls (which I found too noisy) and emmet-vim (which didn't allow for integration with nvim-cmp). Since then there have been more options created. Feel free to check these out in case this plugin doesn't work for you:

Plugins:

Language Servers: