Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement pos = 'center' option #9

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jesseleite
Copy link
Contributor

@jesseleite jesseleite commented Mar 25, 2021

  • 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',
          -- ...
      })

@tjdevries
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants