Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
yogeshlonkar opened this issue Feb 29, 2024 · 0 comments
Open

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

yogeshlonkar opened this issue Feb 29, 2024 · 0 comments

Comments

@yogeshlonkar
Copy link

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

  • nvim freezes for few minutes
  • few notifications of  INFO install ... slowly start appearing from left
  • after a minute or two reset of the notifications appear and nvim starts behaving normally

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant