Repository: autozimu/LanguageClient-neovim (language: rust)

Issue:
Multiline Completion items from Language Server
## Is your feature request related to a problem? Please describe.
I run Deoplete with Language Client Neovim and a Haskell language server. The completion items  passed from the server contains multiline items. The completion menu renders these as ```^@```
This is [expected](https://github.com/vim/vim/issues/2505) but doesnt look good:
<img width="1027" alt="skarmavbild 2018-10-24 kl 19 16 03" src="https://user-images.githubusercontent.com/762115/47449156-41101380-d7c2-11e8-8244-b9fa06437687.png"> 

## Describe the solution you'd like
For my use case it would be good to just replace the ```/n``` with spaces, but I don't know if that would have adverse effect for other sources? I've open a corresponding [issue](https://github.com/Shougo/deoplete.nvim/issues/863) with Deoplete but I'm not sure where its best implemented.


Discussion / hints:

Fix patch:
diff --git a/src/types.rs b/src/types.rs
index bdaced421..c679e6ea7 100644
--- a/src/types.rs
+++ b/src/types.rs
@@ -599,7 +599,7 @@ impl VimCompleteItem {
             abbr,
             icase: Some(1),
             dup: Some(1),
-            menu: lspitem.detail.clone().unwrap_or_default(),
+            menu: lspitem.detail.clone().unwrap_or_default().replace("\n"," "),
             info,
             kind: lspitem.kind.map(|k| format!("{:?}", k)).unwrap_or_default(),
             snippet,


Test patch: