Skip to content

Commit

Permalink
Add standAloneMinimapForEditor in API
Browse files Browse the repository at this point in the history
  • Loading branch information
abe33 committed Aug 15, 2015
1 parent f345e37 commit 8970216
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions lib/main.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,15 @@ class Main

minimap

standAloneMinimapForEditor: (textEditor) ->
return unless textEditor?

Minimap ?= require './minimap'
new Minimap({
textEditor: atom.workspace.getActiveTextEditor()
standAlone: true
})

# Returns the {Minimap} of the active `TextEditor`.
#
# Returns a {Minimap}.
Expand Down

0 comments on commit 8970216

Please sign in to comment.