           name = fields[0]
           if lastModuleHint && (lastModuleHint not in [name, ":#{name}"]) && modules_to_add.length > 0
             fields[0] = modules_to_add.join('.') + '.' + name
-          createSuggestion(serverSuggestion, fields, prefix, pipeBefore)
+          createSuggestion(serverSuggestion, fields, prefix, pipeBefore, captureBefore)
 
         suggestions = sortSuggestions(suggestions)
         resolve(suggestions)

    snippet_params = params
    snippet_params = snippet_params[1...] if snippet_params.length > 0 && pipeBefore

    if snippet_params.length > 0
      snippet = "#{func}(#{snippet_params.join(', ')})"

    snippet = snippet.replace(/^:/, '') + "$0"

      when 'var'
        createSuggestionForVariable(name)
      when 'private_function'
        createSuggestionForFunction(serverSuggestion, name, kind, signature, "", desc, spec, prefix, pipeBefore, captureBefore)
      when 'public_function'
        createSuggestionForFunction(serverSuggestion, name, kind, signature, "", desc, spec, prefix, pipeBefore, captureBefore)
      when 'function'
        createSuggestionForFunction(serverSuggestion, name, kind, signature, mod, desc, spec, prefix, pipeBefore, captureBefore)
      when 'public_macro'
        createSuggestionForFunction(serverSuggestion, name, kind, signature, "", desc, spec, prefix, pipeBefore, captureBefore)
      when 'macro'
        createSuggestionForFunction(serverSuggestion, name, kind, signature, mod, desc, spec, prefix, pipeBefore, captureBefore)
      when 'module'
        createSuggestionForModule(serverSuggestion, name, desc, prefix, subtype)
      else
