Skip to content

Commit

Permalink
fix go-action (e.g. fill-struct) failure after nvim upgrade to 0.11
Browse files Browse the repository at this point in the history
  • Loading branch information
ray-x committed Jan 16, 2025
1 parent ae6e349 commit 6e5a74b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/go/lsp.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6e5a74b

Please sign in to comment.