A wrapper around emmet-cli that uses kakoune-snippets to process the snippets.
Make sure emmet
is in your path
Load emmet.kak
either manually or using plug.kak
- Enter a valid emmet abbreviation into the buffer.
- Select it.
- 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>"
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.
- Select based on a regex