AstroNvim / astrocommunity

A community repository of common plugin specifications
GNU General Public License v3.0
1.16k stars 236 forks source link

fix(go): modify the `build` callback to avoid freezing on `go.nvim` installation #980

Closed rami3l closed 4 months ago

rami3l commented 4 months ago

📑 Description

Currently, Neovim will freeze when installing/updating go.nvim due to the synchronous callback trying to install relevant Golang CLI devtools. This PR stops that from happening via an asynchronous callback instead.

cc https://github.com/ray-x/go.nvim/issues/433

ℹ Additional Information

I have locally tested this change on my machine using the following override:

  -- astrocommunity.pack.go
  {
    "ray-x/go.nvim",
    build = function() require("go.install").update_all() end,
  },
github-actions[bot] commented 4 months ago

Review Checklist

Does this PR follow the [Contribution Guidelines](development guidelines)? Following is a partial checklist:

Proper conventional commit scoping: