That's a wrong approach. Look at gosnippet.vim where I've checking for the plugin itself and then defining the settings.