Replies: 1 comment
-
Ok, i found the error in my configuration: it was caused by wrapping the formatting call in |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
i'm currrently facing an issue where formatting breaks, as soon as i switch to a different java file (and back) or do
:e
. I'm not entirely sure what it is related to, so i didn't wanna open an issues in here straight away.So basically if i open f.e. "App.java", switch to "Another.java" and back to "App.java", the formatting will break. Same as if i open "App.java", simply do
:e
and format. The more often i do:e
or the bigger the indentation, the more characters will be removed. In other instances it put like 10 newlines between braces inpubic interface Some{<10 newlines or so here>}
.Does anyone have an idea what might be causing this? I'm on neovim stable, latest plugins, latest jdtls.
Regards
Edit: I actually just tried and this seems to be indeed related to nvim-jdtls. Using the language server straight via lspconfig doesn't cause this issue.
Beta Was this translation helpful? Give feedback.
All reactions