                      }
                  }
              }
+@@ -56,7 +52,7 @@ class LuaDocumentationProvider : AbstractDocumentationProvider(), DocumentationP
+         return super.getQuickNavigateInfo(element, originalElement)
+     }
+ 
+-    override fun getDocumentationElementForLookupItem(psiManager: PsiManager, obj: Any, element: PsiElement?): PsiElement? {
++    override fun getDocumentationElementForLookupItem(psiManager: PsiManager, obj: Any, element: PsiElement): PsiElement? {
+         if (obj is LuaDocumentationLookupElement) {
+             return obj.getDocumentationElement(SearchContext(psiManager.project))
+         }
 @@ -69,29 +65,27 @@ class LuaDocumentationProvider : AbstractDocumentationProvider(), DocumentationP
  
      override fun generateDoc(element: PsiElement, originalElement: PsiElement?): String? {

             sb.append("#${it.text}")
         }
diff --git a/src/main/java/com/tang/intellij/lua/documentation/LuaDocumentationProvider.kt b/src/main/java/com/tang/intellij/lua/documentation/LuaDocumentationProvider.kt
index a9c39290..b148c47f 100644
--- a/src/main/java/com/tang/intellij/lua/documentation/LuaDocumentationProvider.kt
+++ b/src/main/java/com/tang/intellij/lua/documentation/LuaDocumentationProvider.kt
@@ -16,7 +16,6 @@

From 34f457a01dfed3cc6749b58e7c37218daa3a50d3 Mon Sep 17 00:00:00 2001
From: tangzx <272669294@qq.com>
Date: Sun, 29 Jul 2018 01:14:33 +0800
Subject: [PATCH] revert redesigned documentation

---
 .../intellij/lua/documentation/DocRenderer.kt | 214 ++++++++----------
 .../documentation/LuaDocumentationProvider.kt | 108 ++++-----
 2 files changed, 143 insertions(+), 179 deletions(-)

diff --git a/src/main/java/com/tang/intellij/lua/documentation/DocRenderer.kt b/src/main/java/com/tang/intellij/lua/documentation/DocRenderer.kt
index eb196586..dc0db89f 100644
--- a/src/main/java/com/tang/intellij/lua/documentation/DocRenderer.kt
+++ b/src/main/java/com/tang/intellij/lua/documentation/DocRenderer.kt
@@ -20,48 +20,95 @@ import com.intellij.codeInsight.documentation.DocumentationManagerUtil
