-
Notifications
You must be signed in to change notification settings - Fork 400
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cmp menu width varies greatly when using Rust #1154
Comments
I ran into the same problem today, and after some debugging, found that just by remove the cmp.setup {
formatting = {
format = function(entry, vim_item)
vim_item.menu = nil
return vim_item
end,
}
} For someone using lspkind cmp.setup {
formatting = {
format = lspkind.cmp_format {
menu = {},
},
}
} |
It works!!!! Bless you random stranger from the internet! I thought setting
and omitting the |
Had the same issue with C++ and this solved it, maybe we can add this to the plugin's documentation? Or even have an option for configuring the max width of completion items? |
FAQ
Announcement
Minimal reproducible full config
https://github.com/wonbyte/.dotfiles/blob/main/nvim/.config/nvim/lua/config/cmp.lua
Description
This may be a duplicate of #88 but I'm not sure. Is there a way to completely hide the
type
info? I think that's what's causing my menu to do this:I tried looking for something in the
docs
that may let me use thebut I only see these 3 options
Steps to reproduce
Using
rust-analyzer
try the following code:After you type
inner_iter
and thendot
the menu should appear with the spacing issues.Expected behavior
I can hopefully not have that
type
information shown so my menu width can stay at a consistent and normal width.Actual behavior
Menu size varies greatly and can hide selection options.
Additional context
No response
The text was updated successfully, but these errors were encountered: