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

bug: Error when reloading plugin in Lazy #944

Closed
3 tasks done
eatgrass opened this issue Jul 22, 2023 · 0 comments · Fixed by #946
Closed
3 tasks done

bug: Error when reloading plugin in Lazy #944

eatgrass opened this issue Jul 22, 2023 · 0 comments · Fixed by #946
Labels
bug Something isn't working

Comments

@eatgrass
Copy link

eatgrass commented Jul 22, 2023

Did you check docs and existing issues?

  • I have read all the lazy.nvim docs
  • I have searched the existing issues of lazy.nvim
  • I have searched the existing issues of plugins related to this issue

Neovim version (nvim -v)

0.9.0

Operating system/version

MacOS 13.4.1

Describe the bug

I was trying to reload a plugin using the command Lazy reload markup.nvim, it causes a error

Reloading **markup.nvim**
Error executing Lua callback: Vim:E118: Too many arguments for function: getscriptinfo
stack traceback:
        [C]: in function 'getscriptinfo'
        ...local/share/nvim/lazy/lazy.nvim/lua/lazy/core/loader.lua:269: in function 'reload'
        ...cal/share/nvim/lazy/lazy.nvim/lua/lazy/view/commands.lua:59: in function 'command'
        ...cal/share/nvim/lazy/lazy.nvim/lua/lazy/view/commands.lua:23: in function 'cmd'
        ...cal/share/nvim/lazy/lazy.nvim/lua/lazy/view/commands.lua:107: in function <...cal/share/nvim/lazy/lazy.nvim/lua/lazy/view/commands.lua:94>

Steps To Reproduce

  1. Run Lazy reload <plugin>

Expected Behavior

reload the plugin.

Repro

@eatgrass eatgrass added the bug Something isn't working label Jul 22, 2023
@eatgrass eatgrass changed the title bug: Error when using reload function in Lazy bug: Error when reloading plugin in Lazy Jul 22, 2023
@folke folke closed this as completed in e428c5e Jul 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant