Skip to content

Commit

Permalink
Add anonymous html tag
Browse files Browse the repository at this point in the history
  • Loading branch information
Davidson authored and a-h committed Jun 25, 2021
1 parent 75f30f4 commit 798d205
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions cmd/templ/lspcmd/snippets.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@ package lspcmd
import "github.com/sourcegraph/go-lsp"

var htmlSnippets = []lsp.CompletionItem{
{
Label: "<?>",
InsertText: `${1}>
${0}
</${1}>`,
Kind: lsp.CompletionItemKind(lsp.CIKSnippet),
InsertTextFormat: lsp.ITFSnippet,
},
{
Label: "a",
InsertText: `a href="${1:}">{%= ${2:""} %}</a>`,
Expand Down

0 comments on commit 798d205

Please sign in to comment.