Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Where are you importing your packer packages? #39

Closed
davidahmed opened this issue Jan 25, 2023 · 3 comments
Closed

Where are you importing your packer packages? #39

davidahmed opened this issue Jan 25, 2023 · 3 comments

Comments

@davidahmed
Copy link

davidahmed commented Jan 25, 2023

Where are you importing your packer.lua module.

I can see this in your packer.lua

-- This file can be loaded by calling `lua require('plugins')` from your init.vim

In your ./lua/theprimeagen/init.lua, you're only importing

require("theprimeagen.set")
require("theprimeagen.remap")

Will this work? If this will work, then why does it work? I.e. how can you have packer packages and not import it and yet you can PackerSync. I can't sleep thinkin about this.

@subarutendou
Copy link

subarutendou commented Jan 25, 2023

You can put it in init.lua to load packer each time you open neovim. Don't confuse, packer is package manager not the package it self, once you use packer to install the package, there is no need for the packer to load the package, is neovim load the package. If you want you can download repo and port in neovim, the downside is the update process is so tedious, I absolutly hate it. And I don't know if you can use PackerSync after close and reopen neovim. You can using while follow the video because he source the file once in the packer.lua with :so mean source this file now to load the packer config.

If you want to know more, type :help plugin in neovim.

@davidahmed
Copy link
Author

@andou-azarashi thanks for jumping in. That was my understanding as well. So it means that everytime you change packer packages, you :so it and then run PackerInstall right? v/s If you require it, then you don't have to :so as long as you restart the session or :so the init.lua.

@subarutendou
Copy link

Yes, but is not PackerInstall is PackerSync.

slagtermaarten pushed a commit to slagtermaarten/init.lua that referenced this issue Apr 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants