How to remove this extra information in mini.completion for java #1315
-
Beta Was this translation helpful? Give feedback.
Answered by
echasnovski
Oct 29, 2024
Replies: 1 comment 1 reply
-
That part seems to be a I think this will be resolved after #1258. In particular, see this comment. In the meantime, you can use require('mini.completion').setup({
lsp_completion = {
process_items = function(items, base)
for _, i in ipairs(items) do
i.detail = nil
end
return MiniCompletion.default_process_items(items, base)
end
}
}) As an alternative, you can also set |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
echasnovski
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
That part seems to be a
detail
field of what server returns and it is used asmenu
part of completion item.I think this will be resolved after #1258. In particular, see this comment.
In the meantime, you can use
config.lsp_completion.process_items
to modify items received from LSP server. I think something like this should be enough:As an alternative, you can also set
vim.b.minicompletion_config = { lsp_completion = { process_items = ... } }
local…