 
   # config
   config:
+    coffeeScript:
+      title: 'CoffeeScript'
+      description: 'Completions for CoffeeScript.'
+      type: 'boolean'
+      default: false
     docs:
       title: 'Documentation'
       description: 'Whether to include documentation strings, urls, and origin files (if found) in the result data.'

  unregisterEditor: (editor) ->
    provider = @getProviderForEditor(editor)
    return unless provider
    provider.dispose()
    idx = @providers.indexOf(provider)
    @providers.splice(idx, 1)

      console.error 'error', err

  registerEvents: ->
    @disposables.push atom.config.observe 'atom-ternjs.coffeeScript', =>
      if atom.config.get('atom-ternjs.coffeeScript')
        @grammars.push 'CoffeeScript'
        # TODO: register editors
      else
        idx = @grammars.indexOf('CoffeeScript')
        return unless idx > -1
        @grammars.splice(idx, 1)
        # TODO: unregister editors
    @disposables.push atom.workspace.onDidOpen (e) =>
      return unless e.item and @isValidEditor(e.item)
      @startServer()
