Don't create a new empty buffer on every open. (#300)
This commit is contained in:
@@ -130,7 +130,7 @@ local move_tbl = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function M.open()
|
function M.open()
|
||||||
a.nvim_command("vnew")
|
a.nvim_command("vsp")
|
||||||
local move_to = move_tbl[M.View.side]
|
local move_to = move_tbl[M.View.side]
|
||||||
a.nvim_command("wincmd "..move_to)
|
a.nvim_command("wincmd "..move_to)
|
||||||
a.nvim_command("vertical resize "..M.View.width)
|
a.nvim_command("vertical resize "..M.View.width)
|
||||||
|
|||||||
Reference in New Issue
Block a user