Skip to content

Fix the width of completion menu #980

@krishnakumarg1984

Description

@krishnakumarg1984

FAQ

  • I have checked the FAQ and it didn't resolve my problem.

Issues

  • I have checked existing issues and there are no open or closed issues with the same problem.

Neovim Version

0.7

Minimal reproducible full config

cmp.nvim's autocompletion pop-up menu changes width to accommodate the completion candidates.

While, there are a few options to set the max_width, I don't see any solution to fix the pop-up menu at a certain width.
Can we have an option in cmp to set the pop-up menu to a fixed width?

Description

It is rather annoying when the completion menu's width keeps on changing to be bigger and smaller, leading to a very jarring user experience.

Steps to reproduce

Default config of cmp.

Expected behavior

Fix the pop-up window width irrespective of the length of the completion candidates.

Actual behavior

The completion menu's width keeps on changing to be bigger and smaller dynamically, depending on the width of the populated candidates.

Additional context

The constantly changing pop-up menu width is rather annoying and leads to a jarring user experience.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions