From 6e5a74b866aa4a112ed85a1169befff2ef82c027 Mon Sep 17 00:00:00 2001 From: ray-x Date: Thu, 16 Jan 2025 16:28:27 +1100 Subject: [PATCH] fix go-action (e.g. fill-struct) failure after nvim upgrade to 0.11 --- lua/go/lsp.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/go/lsp.lua b/lua/go/lsp.lua index 973c36d68..eb2404412 100644 --- a/lua/go/lsp.lua +++ b/lua/go/lsp.lua @@ -324,7 +324,7 @@ M.codeaction = function(args) local function apply_action(action) log('apply_action', action, ctx) - if action.edit then + if vim.fn.empty(action.edit) == 0 then vim.lsp.util.apply_workspace_edit(action.edit, gopls.offset_encoding) end if action.command then