feature: load local_spec from git / project root if not found in current directory #1519
Closed
1 task done
Labels
enhancement
New feature or request
Did you check the docs?
Is your feature request related to a problem? Please describe.
I am often annoyed by my local_spec file for a project not loading when I open a file from a subdirectory that doesn't contain the local_spec file.
Describe the solution you'd like
Recursively search (Within reason) for if we are in a git repository (or directory with Makefile, Package.json etc) and if so try loading the .lazy.lua file from the project root.
Describe alternatives you've considered
Tried https://github.com/ahmedkhalf/project.nvim however I it changes the cwd after the check for the local_spec file has already happened.
Additional context
I gave this a go myself but couldn't settle on an implementation I was happy with. I'll come back to it when I've more time and try and write it up properly and then submit a PR but just creating this issue for the time being. Just in case anyone else has any ideas.
The text was updated successfully, but these errors were encountered: