Skip to content

[mini.pick] How to move window to right side of screen? #1473

Closed Answered by echasnovski
Supreeeme asked this question in Q&A
Discussion options

You must be logged in to vote

Is the config from nvim_open_win not the right config?

Not quite. The anchor option defines "Decides which corner of the float to place at (row,col)". As both row and col 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):

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 } })

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by echasnovski
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested mini.pick
2 participants