Skip to content

Implement pos = 'center' option #9

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

Closed
wants to merge 1 commit into 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

@jesseleite
Copy link
Contributor Author

Probs don't need this anymore. Neither do I :D

@jesseleite jesseleite closed this May 8, 2025
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