From 1ccc110ba9df19d9eab69297975f0a0e0905d0b0 Mon Sep 17 00:00:00 2001 From: Ainar Garipov Date: Sat, 7 Sep 2019 20:42:26 +0300 Subject: [PATCH] gopls/doc/vim.md: enable suppress_stderr for natebosch/vim-lsc By default, github.com/natebosch/vim-lsc shows messages from stderr in vim's :messages, which may cause problems and is generally annoying. Suggest disabling that by setting suppress_stderr to v:true. Change-Id: If997b8f8fd036a1ac08ba74a3886f33ff71413c2 Reviewed-on: https://go-review.googlesource.com/c/tools/+/194137 Reviewed-by: Ian Cottrell --- gopls/doc/vim.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/gopls/doc/vim.md b/gopls/doc/vim.md index 20df724a37..431661c900 100644 --- a/gopls/doc/vim.md +++ b/gopls/doc/vim.md @@ -62,11 +62,13 @@ let g:lsc_server_commands = { \ "go": { \ "command": "gopls serve", \ "log_level": -1, +\ "suppress_stderr": v:true, \ }, \} ``` -The `log_level` part is needed to prevent breakage from logging. See [natebosch/vim-lsc#180]. +The `log_level` and `suppress_stderr` parts are needed to prevent breakage from logging. See +[natebosch/vim-lsc#180] and [natebosch/vim-lsc#213]. ## coc.nvim @@ -101,4 +103,4 @@ In vim classic only, use the experimental [`govim`], simply follow the [install [natebosch/vim-lsc#180]: https://github.com/natebosch/vim-lsc/issues/180 [coc.nvim]: https://github.com/neoclide/coc.nvim/ [`govim`]: https://github.com/myitcv/govim -[govim-install]: https://github.com/myitcv/govim/blob/master/README.md#govim---go-development-plugin-for-vim8 \ No newline at end of file +[govim-install]: https://github.com/myitcv/govim/blob/master/README.md#govim---go-development-plugin-for-vim8