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

feature: load local_spec from git / project root if not found in current directory #1519

Closed
1 task done
Kruziikrel13 opened this issue Jun 13, 2024 · 0 comments · Fixed by #1522
Closed
1 task done
Labels
enhancement New feature or request

Comments

@Kruziikrel13
Copy link

Did you check the docs?

  • I have read all the lazy.nvim 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.

@Kruziikrel13 Kruziikrel13 added the enhancement New feature or request label Jun 13, 2024
@folke folke closed this as completed in e2e10d9 Jun 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant