1
0
mirror of https://github.com/golang/go synced 2024-09-30 14:18:32 -06:00

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 <iancottrell@google.com>
This commit is contained in:
Ainar Garipov 2019-09-07 20:42:26 +03:00 committed by Ian Cottrell
parent f3d05f808b
commit 1ccc110ba9

View File

@ -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
[govim-install]: https://github.com/myitcv/govim/blob/master/README.md#govim---go-development-plugin-for-vim8