ThePrimeagen / init.lua

3.23k stars 578 forks source link

Packer not required #74

Open GosuTeacher opened 1 year ago

GosuTeacher commented 1 year ago

Shouldn't you require also the packer.lua file here? https://github.com/ThePrimeagen/init.lua/blob/249f3b14cc517202c80c6babd0f9ec548351ec71/lua/theprimeagen/init.lua#L2

waleedrana777 commented 1 year ago

Why? My works without it? For what?

wrigleyster commented 1 year ago

@GosuTeacher packer generates a compiled version of the init script and places it in the .config/nvim/plugin, and all files in that folder are auto loaded. So no need to load it a second time via init.lua

zaddok commented 1 year ago

With the config from the video, and us the neovim downloaded today (v0.9.1) the :PackerSync command doesn't work when I exit and reopen nvim until I open the packer.lua file and type :so.

There is a step missing somewhere.

CheesyChocolate commented 1 year ago

Compiling Lazy-Loaders

To optimize startup time, packer.nvim compiles code to perform the lazy-loading operations you specify. This means that you do not need to load packer.nvim unless you want to perform some plugin management operations.