Overwrite option between multiple files has no effect?

Asked by jaux

I've put my customized javascript snippets in a separate file, such as ~/snippets/javascript.snippets, and added the directory to ultisnips' settings.

Now ultisnips is able to locate all the snippets, but if my own snippet with the ! option is meant to overwrite the bundled one, ultisnips still shows the menu and ask me to choose which one I want to use.

Is this a bug? I've tested overwrite option for two snippets in the same file, ultisnips works as expected.

Question information

Language:
English Edit question
Status:
Answered
For:
UltiSnips Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
SirVer (sirver) said :
#1

Your likely problem is that your files appear before ultisnips own files
in your runtime path (set runtimepath?). You can reverse the direction
UltiSnips traverses this variable via the g:UltiSnipsDontReverseSearchPath variable. See the docs.

Can you help with this problem?

Provide an answer of your own, or ask jaux for more information if necessary.

To post a message you must log in.