Sublime Forum

Clean way to override default completions?

#1

HTML.sublime-completions defines:

		{ "trigger": "script", "contents": "<script type=\"${1:text/javascript}\">$0</script>" },

for example.
If I would like to have my own version of this completion that has removed type attribute, what would be the way to do it?

Until recently, my custom HTML.sublime-completions placed in the User directory seemed to work.

[code]{
“scope”: “text.html - source - meta.tag, punctuation.definition.tag.begin”,

"completions":

	{ "trigger": "script", "contents": "<script>\n	$0\n</script>" }
]

}[/code]
But currently, it looks like original completion has priority over my custom one so just pressing “tab” autocompletes to the original one.
Any hints how to deal with it?
I don’t want to remove original completions because they will be restored sooner or later with some future update.

0 Likes

#2

+1
Same issue here. Maybe a regression?

0 Likes