Skip to content

Commit

Permalink
add yaml tags completion
Browse files Browse the repository at this point in the history
  • Loading branch information
dangogh committed Jul 13, 2016
1 parent 7fe846b commit f9549b7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions gosnippets/UltiSnips/go.snippets
Expand Up @@ -189,6 +189,11 @@ snippet json "\`json:key\`"
\`json:"${1:`!v go#util#snippetcase(matchstr(getline("."), '\w\+'))`}"\`
endsnippet

# yaml field tag
snippet yaml "\`yaml:key\`"
\`yaml:"${1:`!v go#util#snippetcase(matchstr(getline("."), '\w\+'))`}"\`
endsnippet

# fallthrough
snippet ft "fallthrough"
fallthrough
Expand Down
5 changes: 5 additions & 0 deletions gosnippets/snippets/go.snip
Expand Up @@ -162,6 +162,11 @@ snippet json
abbr \`json:key\`
\`json:"${1:keyName}"\`

# yaml snippet
snippet yaml
abbr \`yaml:key\`
\`yaml:"${1:keyName}"\`

# fallthrough
snippet ft
abbr fallthrough
Expand Down

0 comments on commit f9549b7

Please sign in to comment.