init.lua icon indicating copy to clipboard operation
init.lua copied to clipboard

Packer not required

Open GosuTeacher opened this issue 1 year ago • 4 comments

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

GosuTeacher avatar May 13 '23 21:05 GosuTeacher

Why? My works without it? For what?

waleedrana777 avatar May 30 '23 20:05 waleedrana777

@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

wrigleyster avatar Jun 07 '23 23:06 wrigleyster

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.

zaddok avatar Jun 27 '23 15:06 zaddok

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.

CheesyChocolate avatar Jul 02 '23 13:07 CheesyChocolate