From 6e9046bfcd34178dc116189817430a2ad1ee7b43 Mon Sep 17 00:00:00 2001 From: Francesco Renzi Date: Thu, 15 Jul 2021 09:44:06 +0100 Subject: [PATCH] gopls/doc: fix imports function for Neovim LSP The documented Lua function for supporting imports with Neovim native LSP support does work for imports, but also runs any other code action available in the current range. For example, if the function was to run with the user's cursor on an empty struct being initialized, the code action for filling that struct would also run. This change restricts the desired actions to only be organizeImports. Fixes golang/go#47181 Change-Id: Ie4eb5961cb4405091477b79175acc7052ff16d4c Reviewed-on: https://go-review.googlesource.com/c/tools/+/334749 Reviewed-by: Hyang-Ah Hana Kim Trust: Hyang-Ah Hana Kim Trust: Robert Findley --- gopls/doc/vim.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gopls/doc/vim.md b/gopls/doc/vim.md index 48c9b03d59..a6b40a46b3 100644 --- a/gopls/doc/vim.md +++ b/gopls/doc/vim.md @@ -165,7 +165,7 @@ lua <