plugins.emmet.settings

The configuration options for emmet without the user_emmet_ prefix.

Example: To set user_emmet_foo_bar to 1, write

  settings = {
    foo_bar = true;
  };

Type: attribute set of anything

Default: { }

Example:

{
  leader = "<C-Z>";
  mode = "inv";
  settings = {
    html = {
      default_attributes = {
        option = {
          value = null;
        };
        textarea = {
          cols = 10;
          id = null;
          name = null;
          rows = 10;
        };
      };
      snippets = {
        "html:5" = ''
          <!DOCTYPE html>
          <html lang=\"$\{lang}\">
          <head>
          \t<meta charset=\"$\{charset}\">
          \t<title></title>
          \t<meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">
          </head>
          <body>\n\t$\{child}|\n</body>
          </html>
        '';
      };
    };
    variables = {
      lang = "ja";
    };
  };
}

Declared by:

plugins.emmet.settings.leader_key

Leading keys to run Emmet functions.

Type: null or string or raw lua code

Default: null

Plugin default: "<C-y>"

Declared by:

plugins.emmet.settings.mode

Choose modes, in which Emmet mappings will be created. Default value: ‘a’ - all modes.

  • ‘n’ - normal mode.
  • ‘i’ - insert mode.
  • ‘v’ - visual mode.

Examples:

  • create Emmet mappings only for normal mode: n
  • create Emmet mappings for insert, normal and visual modes: inv
  • create Emmet mappings for all modes: a

Type: null or string or raw lua code

Default: null

Plugin default: "a"

Declared by: