autozimu / LanguageClient-neovim

Language Server Protocol (LSP) support for vim and neovim.
MIT License
3.55k stars 272 forks source link

Raise the BufWriter capacity to avoid blocking on writes #1230

Open TysonAndre opened 3 years ago

TysonAndre commented 3 years ago

At least for me, vim's ui blocks when using a single threaded language server that works for a long time before reading the next command from stdin.

With phan, I see the editor does not seem to block with this patch. See https://doc.rust-lang.org/std/io/struct.BufWriter.html#implementations