Skip to content

fix: use fallback directory when root markers are missing #62

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

Merged
merged 1 commit into from
Apr 16, 2024

Conversation

atm1020
Copy link
Contributor

@atm1020 atm1020 commented Apr 14, 2024

  • In case the root markers are missing, use a fallback directory returned by the vim.fn.getcwd() function. After creating any root markers, jdtls recognizes and uses them after a restart.

  • I think people who just want to try nvim-java with a simple project, are stuck without a fallback directory.

@atm1020 atm1020 changed the title fix: use fallback directory when root markers are missing (#152) fix: use fallback directory when root markers are missing Apr 14, 2024
@s1n7ax
Copy link
Member

s1n7ax commented Apr 14, 2024

I will look into this

@s1n7ax
Copy link
Member

s1n7ax commented Apr 16, 2024

@atm1020 Awesome. My home dir is a git repo. That's why it worked for me all this time. This fix is working. Thanks!

@s1n7ax s1n7ax merged commit 5644bd1 into nvim-java:main Apr 16, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants