make completion popup windows have bufhidden=wipe (#886)

This commit is contained in:
Hubert Teo
2022-04-13 07:01:25 -07:00
committed by GitHub
parent 3192a0c578
commit f573479528

View File

@@ -21,7 +21,7 @@ buffer.ensure = function(name)
created_new = true created_new = true
buf = vim.api.nvim_create_buf(false, true) buf = vim.api.nvim_create_buf(false, true)
vim.api.nvim_buf_set_option(buf, 'buftype', 'nofile') vim.api.nvim_buf_set_option(buf, 'buftype', 'nofile')
vim.api.nvim_buf_set_option(buf, 'bufhidden', 'hide') vim.api.nvim_buf_set_option(buf, 'bufhidden', 'wipe')
buffer.cache[name] = buf buffer.cache[name] = buf
end end
return buf, created_new return buf, created_new