Skip to content

FR: Config to change the border style #27

Answered by bennypowers
chrisgrieser asked this question in Q&A
Discussion options

You must be logged in to vote

https://github.com/bennypowers/nvim-regexplainer#popup-below-cursor

You can customize the popup window by specifying options.popup.border,
which is a table of popup options from nui.
Any options specified for options.popup will also override the defaults.

require'regexplainer'.show {
  display = 'popup',
  popup = {
    border = {
      padding = { 1, 2 },
      style = 'solid',
    },
  },
}

You could use this to, for example, set a different border based on the state of your editor.

You could also pass popup in the options to setup { }

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by bennypowers
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #25 on December 18, 2022 15:02.