Giter Site home page Giter Site logo

Comments (9)

evantravers avatar evantravers commented on July 17, 2024 2

Thanks @savq. I believe that was it… I knew I was doing something odd. I just moved everything to the top of the file for now, and everything is golden.

I may try to some lua magic where I register a plugin and it's config and at the end require all the plugins and setup all the config… but that can wait.

evantravers/dotfiles@0ea49e0

from paq-nvim.

savq avatar savq commented on July 17, 2024 1

Ahh, ok, the problem isn't that bad.

What's happening is that Neovim will raise an error when it gets to line 18 of your dotfiles, where you're defining your colorscheme. Neovim can't find it (since it isn't installed yet). When you enter Neovim again, it'll get to line 22, where there's a require call, etc.

I hadn't noticed because I source all my plugins at the top of my config, but you can still use your plugins as you have them now. It just needs a little bootstrapping.

Lazy solution:

Create a temporary file with a list of the plugins, install all of them, and then use your dotfiles as usual.

cd ~/.config/nvim/
cat init.lua | grep 'paq' > temp.lua
nvim -u temp.lua

The -u flag tells Neovim to use a different initialization file, once in Neovim you should be able to run :PaqInstall without issues.

from paq-nvim.

savq avatar savq commented on July 17, 2024

Yep. There was a bug in v0.6.2. I pushed a patch a couple of hours before this issue. Hopefully when you downloaded paq again, it was the new version.

I'll keep this open for a couple of days to be completely sure that everything is working correctly.

:PaqInstall should be working fine though. If plugins weren't installed properly, the plugins probably weren't deleted properly and there are residual directories that cause git clone to fail.

from paq-nvim.

evantravers avatar evantravers commented on July 17, 2024

I tried burning the folders to try and force Paq to install everything… but I'm still getting false numbers [1/3] to start with, then the next time I restart I'm getting [3/12] and I get the next batch… I assume I'm doing something wrong, but it's weird.

from paq-nvim.

evantravers avatar evantravers commented on July 17, 2024

image

So running into this again… I checked :PaqLogOpen and found a bunch of "pulling without specifying a strategy" warnings, so I nuked ~/.local/share/nvim/site/pack/paqs/, reinstalled using the bash command from the README.md, and now I'm in incremental `:PaqInstall's again.

from paq-nvim.

evantravers avatar evantravers commented on July 17, 2024

I think part of the problem may be that I have killed nvim before it's done cloning it's current batch… there's a folder and repo, but it hasn't finished pulling/rebasing.

from paq-nvim.

savq avatar savq commented on July 17, 2024

Ok, the screenshot made it easy to see one of the problems. That's likely fixed now.

The message in the log is probably unrelated though 🤔

from paq-nvim.

evantravers avatar evantravers commented on July 17, 2024

I'm sure I'm doing something dumb… potentially my git config or $XDG_DATA_HOME? Unsure.

https://asciinema.org/a/mhiJAkIaNMsST7Wzp5xw0bes8

☝️ There's a recording of the incremental saving occurring… am I just following a bad practice with my nvim.lua?

from paq-nvim.

savq avatar savq commented on July 17, 2024

No problem, I'm glad I could help. and sorry for the other inconveniences.

from paq-nvim.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.