Skip to content
Discussion options

You must be logged in to vote

Hello @yriveiro , if you don't use border.text or border.padding, it would render a single window and will use Neovim's native window border to do draw the border.

But Neovim's native window border doesn't support drawing text on top of it or doing padding. So using two windows is a trick to acheive that. nui.nvim will draw the border, border text and padding on border window, and the popup window sits on top of that. It's a common trick for doing this in Neovim.

I hope that answers your question. Let me know if you need any further clarification. 😃

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by yriveiro
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 #45 on November 01, 2021 05:48.