nix-community.nixvim/tests/test-sources/plugins/utils/emmet.nix

46 lines
1,023 B
Nix
Raw Normal View History

2024-02-09 15:16:17 +01:00
{
empty = {
plugins.emmet.enable = true;
};
example = {
plugins.emmet = {
enable = true;
settings = {
mode = "inv";
leader = "<C-Z>";
settings = {
variables = {
lang = "ja";
2024-02-09 15:16:17 +01:00
};
html = {
default_attributes = {
option = {value = null;};
textarea = {
id = null;
name = null;
cols = 10;
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>
'';
};
2024-02-09 15:16:17 +01:00
};
};
};
};
};
}