Skip to content

JJK96/kakoune-emmet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 

Repository files navigation

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

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published