ThePrimeagen / ThePrimeagen/init.lua

E492: Not an editor command: PackerSync

Open
#34 7 comments 3 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.