Don't create a new empty buffer on every open. (#300)

This commit is contained in:
Sindre T. Strøm 2021-04-16 09:32:27 +02:00 committed by GitHub
parent b5ef2fb7f8
commit 4271180aea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -130,7 +130,7 @@ local move_tbl = {
}
function M.open()
a.nvim_command("vnew")
a.nvim_command("vsp")
local move_to = move_tbl[M.View.side]
a.nvim_command("wincmd "..move_to)
a.nvim_command("vertical resize "..M.View.width)