autoload/lsp/completion.vim | 2 +- diff --git a/autoload/lsp/completion.vim b/autoload/lsp/completion.vim index 4d04190e0ae879f47f8e7681e64dde5adc12daf6..4c83d03b7157333f8d1bb28d2eaf5088ab960bc6 100644 --- a/autoload/lsp/completion.vim +++ b/autoload/lsp/completion.vim @@ -269,7 +269,7 @@ var infoText: list var infoKind: string - if cItem->has_key('detail') + if cItem->has_key('detail') && !cItem.detail->empty() # Solve a issue where if a server send the detail field with "\n", # on the completion popup, everything will be joined with "^@" # (example: typescript-language-server)