plugins.emmet.settings
The configuration options for emmet without the user_emmet_
prefix.
For example, the following settings are equivialent to these :setglobal
commands:
foo_bar = 1
->:setglobal user_emmet_foo_bar=1
hello = "world"
->:setglobal user_emmet_hello="world"
some_toggle = true
->:setglobal user_emmet_some_toggle
other_toggle = false
->:setglobal nouser_emmet_other_toggle
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: