Skip to content

What buftype if nui windows? #243

Closed Answered by MunifTanjim
RAprogramm asked this question in Q&A
Discussion options

You must be logged in to vote

All the popup created by nui.nvim uses unlisted scratch buffer, created by vim.api.nvim_create_buf(false, true).

If you want to set a specific filetype, you can pass buf_options = { filetype = 'anything' } to the popup_options table when creating the popup.

Also as a default Neovim behavior - for any popup buftype is nofile, and for input buftype is prompt.

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@RAprogramm
Comment options

@MunifTanjim
Comment options

@RAprogramm
Comment options

Answer selected by MunifTanjim
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