Skip to content

Commit 761f854

Browse files
author
skywind3000
committed
minor improvements for nvim
1 parent 7b0cbdc commit 761f854

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

autoload/quickui/core.vim

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -406,6 +406,9 @@ function! quickui#core#buffer_alloc()
406406
call setbufvar(bid, 'noswapfile', 1)
407407
else
408408
let bid = nvim_create_buf(v:false, v:true)
409+
call setbufvar(bid, '&buftype', 'nofile')
410+
call setbufvar(bid, '&bufhidden', 'hide')
411+
call setbufvar(bid, 'noswapfile', 1)
409412
endif
410413
endif
411414
call setbufvar(bid, '&modifiable', 1)

0 commit comments

Comments
 (0)