ray-x / go.nvim

G'day Nvimer, Joyful Gopher: Discover the Feature-Rich Go Plugin for Neovim
MIT License
2.05k stars 123 forks source link

vim.notify freezes when plugin updated via lazy.nvim #433

Open yogeshlonkar opened 7 months ago

yogeshlonkar commented 7 months ago

I use lazy.nvim with below plugin config

  {
    'ray-x/go.nvim',
    lazy = true,
    event = 'BufRead',
    ft = {'go', 'gomod'},
    dependencies = {'ray-x/guihua.lua'},
    build = function() require('go.install').update_all_sync() end,
    config = function()
      -- some config commands
    end,
  },

Every time go.nvim is updated

this is due to nvim-notify and update_all_sync not playing well with each other

If I use update_all in build

+     build = function() require('go.install').update_all() end,
-     build = function() require('go.install').update_all_sync() end

everything works good.

I don't have issue using update_all but this was annoying me for couple of months and it would be good if there is a option/ flag to disable vim.notify in plugin