Skip to content

Commit

Permalink
tests/emmet: init
Browse files Browse the repository at this point in the history
  • Loading branch information
GaetanLepage committed Feb 11, 2024
1 parent 962fb6e commit e2bd02a
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions tests/test-sources/plugins/utils/emmet.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
empty = {
plugins.emmet.enable = true;
};

example = {
plugins.emmet = {
enable = true;

mode = "inv";
leader = "<C-Z>";
settings = {
variables = {
lang = "ja";
};
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>
'';
};
};
};
};
};
}

0 comments on commit e2bd02a

Please sign in to comment.