init.lua
init.lua copied to clipboard
Packer not required
Shouldn't you require also the packer.lua
file here?
https://github.com/ThePrimeagen/init.lua/blob/249f3b14cc517202c80c6babd0f9ec548351ec71/lua/theprimeagen/init.lua#L2
Why? My works without it? For what?
@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
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.
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.