Skip to content

Commit

Permalink
fix(go): modify the build callback to avoid freezing on go.nvim i…
Browse files Browse the repository at this point in the history
…nstallation (#980)
  • Loading branch information
rami3l authored May 21, 2024
1 parent b092e34 commit 06fbacf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lua/astrocommunity/pack/go/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,9 @@ return {
},
event = { "CmdlineEnter" },
ft = { "go", "gomod" },
build = ':lua require("go.install").update_all_sync()',
-- Prevents Neovim from freezing on plugin installation/update.
-- See: <https://github.com/ray-x/go.nvim/issues/433>
build = function() require("go.install").update_all() end,
},
{
"nvim-neotest/neotest",
Expand Down

0 comments on commit 06fbacf

Please sign in to comment.