plugins/emmet: switch to settings option

This commit is contained in:
Gaetan Lepage 2024-03-01 18:12:06 +01:00 committed by Gaétan Lepage
parent d8432ef9c1
commit d149f46b00
2 changed files with 94 additions and 39 deletions

View file

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