fix: reload view when bufnr is not valid

This commit is contained in:
kiyan
2021-08-30 18:49:33 +02:00
parent 802bc08485
commit 4cc2abe3e2

View File

@@ -294,6 +294,10 @@ end
function M.open(options)
options = options or { focus_tree = true }
if not a.nvim_buf_is_valid(M.View.bufnr) then
HAS_LOADED = false
end
if not HAS_LOADED then
M.setup()
HAS_LOADED = true