Skip to content
Discussion options

You must be logged in to vote

To answer your question: yes, the config.lsp_completion.process_items is the suggested way to adjust that. The label field is usually the last fallback among candidate fields that determine which text is inserted. To work around this, make sure to set other fields that have higher precedence for inserting text. The specification allows several ways to do that, but for this purpose setting insertText field should work. So adding something like item.insertText = item.insertText or item.label before adjusting the label should do the trick.

To answer your problem: Neovim>=0.12 (current Nightly) has 'pummaxwidth' option that limits the width of the popup menu. It is not 100% the same, as it tr…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@alikhan-ab
Comment options

@echasnovski
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
Labels
question Further information is requested mini.completion
2 participants