 
 module.exports =
   bindings: {}
+  pluginActive: false
+  isActive: -> @pluginActive
   activate: (state) ->
     gitDiff = atom.packages.getLoadedPackage('git-diff')
     minimap = atom.packages.getLoadedPackage('minimap')
 
     return @deactivate() unless gitDiff? and minimap?
-
 
     atom.workspaceView.eachEditorView (editor) =>
       id = editor.getModel().id

      @bindings[id] = binding

      binding.activate() if @pluginActive


    minimapModule = require minimap.path
    minimapModule.registerPlugin 'git-diff', this


  activatePlugin: ->
    return if @pluginActive

    @pluginActive = true
    binding.activate() for id,binding of @bindings

