Skip to content
This repository was archived by the owner on Nov 30, 2025. It is now read-only.

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

Merged
s1n7ax merged 1 commit intonvim-java:mainfrom
atm1020:fix-nil-root-dir
Apr 16, 2024
Merged

fix: use fallback directory when root markers are missing#62
s1n7ax merged 1 commit intonvim-java:mainfrom
atm1020:fix-nil-root-dir

Conversation

@atm1020
Copy link
Copy Markdown
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
Copy Markdown
Member

s1n7ax commented Apr 14, 2024

I will look into this

@s1n7ax
Copy link
Copy Markdown
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
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants