popup.nvim icon indicating copy to clipboard operation
popup.nvim copied to clipboard

Implement `pos = 'center'` option

Open jesseleite opened this issue 5 years ago • 1 comments

  • [x] Implement pos = 'center' option.
    • You had this as a TODO.
    • I had to rearrange a few things, as I needed access to width and height before setting line and col.
    • The centering logic is ripped from Telescope; You ever heard of Telescope?
    • Example usage...
      local win_id, win = popup.create(bufnr, {
          minwidth = config.width or 60,
          minheight = config.height or 10,
          pos = 'center',
          -- ...
      })
      

jesseleite avatar Mar 25 '21 00:03 jesseleite

If you fix conflicts, I will merge. Sorry for the delay

tjdevries avatar Aug 09 '21 11:08 tjdevries