yadm add for files in ~/.config/nvim/lua/custom/ doesn't work
Turil opened this issue · comments
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)
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 !