Closed GiuseppeMP closed 1 year ago
:lua =require('jdtls.setup').find_root({"pom.xml"})
shows the correct folder for me.
@mfussenegger I found the bug, were in my configs. 😄 I created a reproduce files to find it, may it be useful for other ppl that are investigating problems with their configs.
LSP client configuration
The complete config file: https://github.com/GiuseppeMP/my-nvim-config/blob/main/lua/user/plugins/configs/lsp/jdtls.lua
Eclipse.jdt.ls version
v1.24.0
Steps to Reproduce
~/projects/repro
.jdtls
.:LspInfo
Expected Result
The output of LspInfo, at jdtls client should be:
root directory: ~/projects/repro
Actual Result
What actually happens:
root directory: /Users/<user>
If I execute
git init
only to create a.git
directory, the bug stops. Maybe I misunderstood theroot_markers
.