ThePrimeagen / ThePrimeagen/init.lua
E492: Not an editor command: PackerSync
Nobody has claimed this yet.
- Dominant language
- Lua
- Stars
- 4k
- Forks
- 680
- PR merge metrics
- No merged PRs in 30d
Description
Issue : upon relaunching nvim, commands like :PackerSync show the error message : "E492: Not an editor command: PackerSync"
Going to /lua/[your_name]/packer.lua and :so the file fixes the issue, so I figured this packer.lua never gets loaded.
I did compare my setup to this very config and have the same settings, but I think I found a possible cause : in /lua/[your_name]/init.lua, we actively require the packages [your_name].remap and [your_name].set, but we never require [your_name].packer
I tried adding this to my /lua/[your_name]/init.lua and the problem goes away.
require("jubi.remap")
require("jubi.set")
require("jubi.packer")
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with lua/[your_name]/init.lua and lua/[your_name]/packer.lua, then compare which modules are required during startup. Reproduce the problem by relaunching Neovim and running :PackerSync; done means the command is available without manually sourcing packer.lua.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- lua, neovim
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 38/100