From 798d2051c35c2b6e7a214e9e74fdff9fd46d81af Mon Sep 17 00:00:00 2001 From: Davidson Date: Fri, 25 Jun 2021 14:00:56 +0100 Subject: [PATCH] Add anonymous html tag --- cmd/templ/lspcmd/snippets.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/cmd/templ/lspcmd/snippets.go b/cmd/templ/lspcmd/snippets.go index fdb8e9329..37a9d6b0e 100644 --- a/cmd/templ/lspcmd/snippets.go +++ b/cmd/templ/lspcmd/snippets.go @@ -3,6 +3,14 @@ package lspcmd import "github.com/sourcegraph/go-lsp" var htmlSnippets = []lsp.CompletionItem{ + { + Label: "", + InsertText: `${1}> + ${0} +`, + Kind: lsp.CompletionItemKind(lsp.CIKSnippet), + InsertTextFormat: lsp.ITFSnippet, + }, { Label: "a", InsertText: `a href="${1:}">{%= ${2:""} %}`,