   constructor: (@vimState) ->
     {@editor, @editorElement, @globalState} = @vimState
     @disposables = new CompositeDisposable
-    
     @markerLayer = @editor.addMarkerLayer()
+
     options =
       type: 'highlight'
       invalidate: 'inside'

    # Refresh highlight based on globalState.highlightSearchPattern changes.
    # -------------------------
    @disposables = @globalState.onDidChange ({name, newValue}) =>
      @refresh() if name is 'highlightSearchPattern'

  destroy: ->
    @decorationLayer.destroy()


  refresh: ->
    @clearMarkers()

    return unless settings.get('highlightSearch')
    return unless @vimState.isVisible()
    return unless pattern = @globalState.get('highlightSearchPattern')
    return if matchScopes(@editorElement, settings.get('highlightSearchExcludeScopes'))

    for range in scanEditor(@editor, pattern)
      @markerLayer.markBufferRange(range)
