summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaymaekers Luca <raymaekers.luca@gmail.com>2023-04-30 15:15:12 +0200
committerRaymaekers Luca <raymaekers.luca@gmail.com>2023-04-30 15:15:12 +0200
commit92b65e437f5071dcf2703d1c4ca087ef75dad9bf (patch)
tree1b1599eda23a81a6383e8d87311bff2b5edf2eed
parentd8b3edf97a8b27b67352c7d9a079c9d3e381a4b4 (diff)
edited doctype snippet
-rw-r--r--config/essentials/nvim/after/plugin/luasnip.lua25
1 files changed, 16 insertions, 9 deletions
diff --git a/config/essentials/nvim/after/plugin/luasnip.lua b/config/essentials/nvim/after/plugin/luasnip.lua
index b0ecf5d..e692d37 100644
--- a/config/essentials/nvim/after/plugin/luasnip.lua
+++ b/config/essentials/nvim/after/plugin/luasnip.lua
@@ -56,15 +56,22 @@ ls.add_snippets("lua", {
})
ls.add_snippets("html", {
- s("<!DOCTYPE>", {
- t({"<!DOCTYPE html>", "<html lang=\"en\">", "\t<head>", "\t\t<title>"}),
- i(1, "title"),
- t("</title>"), i(2),
- t({"", "\t</head>", "\t<body>", "\t\t<h1>"}),
- i(3, "Header"),
- t("</h1>"), i(0),
- t({"", "\t</body>", "</html>"})
- }),
+ s("<!DOCTYPE>", fmt(
+ [[
+ <!DOCTYPE html>
+ <html lang="en">
+ <head>
+ <meta charset="UTF-8">
+ <meta name="viewport" content="width-device-width, initial-scale=1.0">
+ <meta http-equiv="X-UA-Compatible" content="ie=edge">
+ <title>{}</title>{}
+ </head>
+ <body>
+ <h1>{}</h1>{}
+ </body>
+ </html>
+ ]],
+ {i(1, "title"), i(2), i(3, "Header"), i(0)})),
})
ls.add_snippets("java", {