-
I'm trying to configure Snacks.input so it's similar to the vanilla vim.ui.input. I'm having trouble with the window position. I'd like to display the window under the statusline. Also with my current window position I cannot figure out how to display the window title. Displaying the title where the icon currently is would be ideal. I really would appreciate any help with this. input = { },
styles = {
input = {
position = "bottom",
height = 2,
title_pos = "left",
keys = {
esc = { "<esc>", { "cmp_close", "cancel" } },
i_esc = { "<esc>", "stopinsert", mode = "i" },
i_cr = { "<cr>", { "cmp_accept", "confirm" }, mode = "i" },
i_tab = { "<tab>", { "cmp_select_next", "cmp" }, mode = "i" },
},
},
}, |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Just pushed some updates. You can achieve what you want with: input = {
prompt_pos = "left",
icon_pos = "left",
expand = false,
},
styles = {
input = {
border = "none",
row = -1,
width = 0,
wo = {
winhighlight = "NormalFloat:StatusLine",
},
},
}, Best not to use |
Beta Was this translation helpful? Give feedback.
-
checkhealth
How to fix this? I tried setting to
|
Beta Was this translation helpful? Give feedback.
Just pushed some updates. You can achieve what you want with:
Best not to use
position="bottom"
, since that would open a split.