TheLocehiliosan / yadm

Yet Another Dotfiles Manager

Home Page:https://yadm.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

yadm add for files in ~/.config/nvim/lua/custom/ doesn't work

Turil opened this issue · comments

commented

This question is about

  • Installation
  • Initializing / Cloning
  • Alternate files
  • Jinja templates
  • Encryption
  • Bootstrap
  • Hooks
  • Other

Describe your question

I tried to track .lua files in the ~/.config/nvim/lua/custom/ folder

No matter if I try
yadm add ~/.config/nvim/lua/custom/plugins.lua
or
yadm add ~/.config/nvim/lua/custom/
they do not seem to get picked up.

yadm list -a produces
.tmux.conf

What am I missing?

Are you using nvim framework such as Astrovim/NvChad/Lazyvim?
You could check it:

cd ~/.config/nvim/
git remote -v

If ~/.config/nvim/ is already managed by git you cannot add files to be managed by another git repo (yadm)

commented

Yes that is correct, I indeed use NvChad. I use the solution provided by terheyden in this post:
#361 (comment)

Maybe it would be sensible to add an error message in such cases to make it easier figuring out what is going on?
I'll close this thread. Thank you for your help @alteriks !