Sublime Forum

How to add custom completions?

#1

Hello,

Im trying to do a plugin which will provide few extra items in completion window, so:

  1. i’ve created directory “sublime-text-3/Packages/html/”.
  2. Created file sublime-text-3/Packages/html/html.sublime-completions
  3. added to this file:
{
    "scope": "text.html - source - meta.tag, punctuation.definition.tag.begin",
    "completions":
    
        { "trigger": "greetings", "contents": "Hello world!" },
    ]
}

and its not working :stuck_out_tongue:

What I’m dooing wrong?

0 Likes

#2

OOch, my plugin should be placed into directory “Installed Packages” :smiley:

Sorry for stupid question :smile:

0 Likes

#3

No, that is actually not where it should go.

It should go in a directory inside the packages directory.

1 Like