From 72442fe04084e7fb1b992124abc8ffb6baf2867b Mon Sep 17 00:00:00 2001 From: Simon Drake Date: Wed, 2 Mar 2022 11:25:09 +0000 Subject: [PATCH] gopls: update neovim documentation for imitating goimports The existing example is no longer recommended as it can have unintended consequences; for example, if it is run while the cursor is in an incomplete struct, it will fill in all struct fields. This is described more at https://github.com/neovim/nvim-lspconfig/issues/115#issuecomment-866632451 Change-Id: I3640ddb747a69c864675c0483032037a5e777d59 GitHub-Last-Rev: 2335f017eb967785da28ddb1bc48fb820d59a07e GitHub-Pull-Request: golang/tools#371 Reviewed-on: https://go-review.googlesource.com/c/tools/+/389194 Reviewed-by: Robert Findley Trust: Robert Findley Run-TryBot: Robert Findley Trust: Hyang-Ah Hana Kim gopls-CI: kokoro TryBot-Result: Gopher Robot --- gopls/doc/vim.md | 37 +++++++++++-------------------------- 1 file changed, 11 insertions(+), 26 deletions(-) diff --git a/gopls/doc/vim.md b/gopls/doc/vim.md index 7417d36cfa..887a246ed8 100644 --- a/gopls/doc/vim.md +++ b/gopls/doc/vim.md @@ -175,38 +175,23 @@ a helper function in Lua: lua <