Replies: 1 comment 2 replies
-
Setting draw = {
columns = { { "kind_icon" }, { "label", "label_description", "kind", gap = 1 } },
components = {
label = { width = { fill = false } }, -- default is true
label_description = { width = { fill = true } },
},
}, Although, I'm not sure we handle the |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
So, I like to have a bigger min_width of my cmp menu, so that the menu doesn't keep bouncing around in sizes based on the length of suggestion.
According to the README, you can align the columns with
width.fill
property of the component, but it doesn't seem to be working for me.This is my config
With this config, what I think it should be like is, having "kind_icons" "label" "label_description" on one side of the menu, and have the "kind" component should align with the right side. Or Am I doing something wrong.
But right now, the menu is just like regular menu, with everything aligned on left side, and a huge chunk of empty space on the right. But I want the chunk of space to be between label and kind components.
Beta Was this translation helpful? Give feedback.
All reactions