You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Save the file in a directory (I use ~/.emacs.d/lsp/init.el) and then start emacs with emacs --init-directory ~/.emacs.d/lsp.
Find a Java file, go to some line that has some level of indentation, hit return to open a new line, type a single char: it will immediately trigger completion.
Now re-enable indent-tabs-mode, and do the same: it will only trigger completion after three chars (the default for company-minimum-prefix-width).
The text was updated successfully, but these errors were encountered:
So the same happens for company-mode and without using orderless. Completion happens on the first char. I will update the OP.
Walheimat
changed the title
Help needed: Unable to use orderless and corfu when using lsp-java without tab indentation
Help needed: When using space indentation, completion triggers on first entered char
Sep 15, 2024
Describe the bug
When completing in a Java buffer and not using
tab-indent-mode
, auto completion always triggers immediately.Maybe there is some workaround for this. For now I'll disable auto-completion for
java-mode
.To Reproduce
Use this slightly altered version of
lsp-start-plain
to also set upcompany
and disable tabs:Save the file in a directory (I use
~/.emacs.d/lsp/init.el
) and then start emacs withemacs --init-directory ~/.emacs.d/lsp
.Find a Java file, go to some line that has some level of indentation, hit return to open a new line, type a single char: it will immediately trigger completion.
Now re-enable
indent-tabs-mode
, and do the same: it will only trigger completion after three chars (the default forcompany-minimum-prefix-width
).The text was updated successfully, but these errors were encountered: