Closed kenkoro closed 1 year ago
This is probably due to your completion plugin. nvim-jdtls has no custom completion logic.
eclipse.jdt.ls also recently added labelDetails
support: https://github.com/eclipse/eclipse.jdt.ls/pull/2556, maybe that affects how your completion plugin works.
@mfussenegger and for anybody else if you want to get back to your previous style of labelDetails
like I did, you can install the previous version of jdtls
.
:MasonUninstall jdtls --> delete your current version (my v1.22.0)
:MasonInstall jdtls@v1.21.0 --> install the previous version (v1.21.0)
Here's the result. Thank godness 🙏🏻 😄
Instead of downgrading you could also disable the labelDetailsSupport
.
local config = {
... - other options from the README
capabilities = vim.tbl_deep_extend(
"force",
vim.lsp.protocol.make_client_capabilities(),
{
textDocument = {
completion = {
completionItem = {
labelDetailsSupport = false,
}
}
}
}
)
}
Thanks a lot! I'll try it
LSP client configuration
My config here. Before this issue, I just run
:PackerSync
and update some lsp inMason
. Is it some kind of new feature from updatejdtls
?Eclipse.jdt.ls version
v1.22.0
Steps to Reproduce
Type some assert (
JUnit Jupiter
) keywords in Java.Expected Result
Full list of completion (depends on
build.gradle
orpom.xml
). And each line was like<Name-of-class-or-snippet-or-somethinge-else> <Where-it-comes-from> <Sign-of-class-or-something-else>
. For example, it was likeLinkedList java.util LSP
and so on.Actual Result
Not full list of completions is showed at once (Unlike it did before). And also each line contains only a name of class or something else (e.g. assertTrue) and then what it is (LSP).
https://user-images.githubusercontent.com/85745790/232656831-c6c61590-3aa1-450e-9eca-c6f0cbcc37fe.mp4