Skip to content

How to remove this extra information in mini.completion for java #1315

Closed Answered by echasnovski
231tr0n asked this question in Q&A
Discussion options

You must be logged in to vote

That part seems to be a detail field of what server returns and it is used as menu 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:

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 vim.b.minicompletion_config = { lsp_completion = { process_items = ... } } local…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@231tr0n
Comment options

Answer selected by echasnovski
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
2 participants