         includeKeywords: true
         sort: @config.sort
         guess: @config.guess
-        docs: @config.docs and @config.documentation
-        urls: @config.docs and @config.urls
-        origins: @config.docs and @config.origins
+        docs: @config.documentation
+        urls: @config.urls
+        origins: @config.origins
         lineCharPositions: true
         caseInsensitive: @config.caseInsensitive
     )

    @registerEvents()

  registerEvents: ->
    @disposables.push atom.config.observe 'atom-ternjs.docs', =>
      @config.docs = atom.config.get('atom-ternjs.docs')
    @disposables.push atom.config.observe 'atom-ternjs.sort', =>
      @config.sort = atom.config.get('atom-ternjs.sort')
    @disposables.push atom.config.observe 'atom-ternjs.guess', =>

  config:
    sort: false
    guess: false
    urls: false
    origins: false
    caseInsensitive: false
