nvimdev / dashboard-nvim

vim dashboard
MIT License
2.3k stars 187 forks source link

Error in shortcut #325

Closed TroySigX closed 1 year ago

TroySigX commented 1 year ago

Describe the bug I have the following shortcut in dashboard:

shortcut = {
    { desc = ' Update', group = '@property', action = require('lazy').update, key = 'u' },
    { desc = ' Mason', group = '@property', action = 'Mason', key = 'm' },
 },

After pressing u to call lazy nvim and exiting lazy panel, when I press m, dashboard shows error, like this: image

To Reproduce Steps to reproduce the behavior:

  1. Set shortcut in dashboard as described
  2. Go to nvim
  3. Press u to trigger lazy
  4. Exit lazy panel by pressing q
  5. Press m

Expected behavior Should open mason.nvim as usual without errors.

glepnir commented 1 year ago

the error message from mason.