Skip to content

Latest commit

 

History

History
42 lines (23 loc) · 1.15 KB

README.md

File metadata and controls

42 lines (23 loc) · 1.15 KB

Emmet.kak

A wrapper around emmet-cli that uses kakoune-snippets to process the snippets.

Setup

Make sure emmet is in your path

Load emmet.kak either manually or using plug.kak

Dependencies

Usage

Manual

  1. Enter a valid emmet abbreviation into the buffer.
  2. Select it.
  3. run :emmet

You can also create mappings for ease of use, some examples:

To expand the current line:

map global insert <a-e> "<esc>x: emmet<ret>"

Completer

You can enable the emmet completer by running emmet-enable-autocomplete

Upon selecting an emmet completion the snippet is inserted

The completer tries to select an abbreviation based on emmet-select-abbreviation, which selects until the previous whitespace.

You can override emmet-select-abbreviation with another function to select abbreviations differently.

TODO

  • Select based on a regex