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

Doesn't run makeprg from project root #8

Open
igemnace opened this issue Jan 10, 2018 · 2 comments
Open

Doesn't run makeprg from project root #8

igemnace opened this issue Jan 10, 2018 · 2 comments

Comments

@igemnace
Copy link
Owner

If Vim is opened from a project subdir, it reads .makery.json from project root properly, since it recurses up directories to search for it.

However, project root is sometimes needed for the makeprg to work (e.g. having Mtags run ctags -R src will certainly need to run in project root, for it to find src). Saving project root to a variable could certainly prove convenient.

Ideas for detecting project root:

  • For .makery.json: use the directory in which .makery.json is found.
  • For g:makery_config: without globbing, use the exact path as it appears in the config. With globbing, use the current path (parent directory of the current buffer)?
  • For Projectionist support: use the most precisely targeted root from projectionist#query() or projectionist#path()?
@D4D3VD4V3
Copy link
Contributor

Is this being worked on? I could lend a hand!

@igemnace
Copy link
Owner Author

Sure, have at it! Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants