I’m trying to add autocomplete for the Thymeleaf natural templating (Java) language.
Example:
Hello World
When I enter ‘th’ I would like to get an autocomplete for: th:text="$0"
What I did: Add Thymeleaf.sublime-completions file and add {“selector”: “text.html”, “characters”: “th”} to my auto_complete_triggers User setting.
The completion is working but NOT when I’m inside a HTML tag. Does someone know how I can add completion inside HTML tags?
{
"scope": "text.html - source - meta.tag, punctuation.definition.tag.begin",
// "scope": "text.html meta.tag",
"completions":
{ "trigger": "th:if", "contents": "th:if=\"$0\"" },
{ "trigger": "th:else", "contents": "th:else=\"$0\"" }
]
}