[mini.pick] How to move window to right side of screen? #1473
-
Contributing guidelines
Module(s)mini.pick QuestionI'd like to move the picker to the right side of the screen. I tried this in my config: require('mini.pick').setup{
window = {
config = {
relative = "editor",
anchor = "SE"
}
}
} However this does not appear to do anything. Am I doing something wrong? Is the config from |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Not quite. The Here is the way to put picker window to the bottom right (similar to this example from help): local win_config = function()
return {
anchor = 'SE',
row = vim.o.lines - vim.o.cmdheight - (vim.o.laststatus >= 2 and 1 or 0),
col = vim.o.columns,
}
end
require('mini.pick').setup({ window = { config = win_config } }) |
Beta Was this translation helpful? Give feedback.
Not quite. The
anchor
option defines "Decides which corner of the float to place at (row,col)". As bothrow
andcol
are not adjusted, they are the same as computed by default for'NW'
anchor.Here is the way to put picker window to the bottom right (similar to this example from help):