Skip to content

Commit bc98ca6

Browse files
committed
fix: Wipe buffers when we're done with them
1 parent 7cf8942 commit bc98ca6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lua/popup/init.lua

+2
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ function popup.create(what, vim_options)
3838
bufnr = vim.api.nvim_create_buf(false, true)
3939
assert(bufnr, "Failed to create buffer")
4040

41+
vim.api.nvim_buf_set_option(bufnr, "bufhidden", "wipe")
42+
4143
-- TODO: Handle list of lines
4244
if type(what) == 'string' then
4345
what = {what}

0 commit comments

Comments
 (0)