Add indent queries for Java #7789
Labels
A-indent
Area: Indentation
A-language-support
Area: Support for programming/text languages
C-enhancement
Category: Improvements
E-easy
Call for participation: Experience needed to fix: Easy / not much
E-has-instructions
Call for participation: Has instructions for fixing the issue and opening a PR
Summary
The indentation works correct when pressing Enter in a closed {}, but in an already expanded {..}, the cursor aligns with { instead of { + 4 spaces.
For example. If I hit enter at this cursor location, it correctly places cursor at expanded location
(hit enter now)
(all looks good)
On the other hand, if I hit "o" at any where on the function definition line, the cursor however is placed at wrong location:
(hit o)
(it aligns with the function definition block, not the expected place)
This seems only happens to Java. For rust for example it works normally.
Reproduction Steps
No response
Helix log
No response
Platform
Linux
Terminal Emulator
kitty 0.29.2
Helix Version
helix 23.05 (57952c4)
The text was updated successfully, but these errors were encountered: