fix small bugs in nvim-tree (#1629)

This commit is contained in:
Abouzar Parvan 2021-09-26 21:11:44 +03:30 committed by GitHub
parent 62b805448d
commit 238bbf18ac
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 4 deletions

View file

@ -110,8 +110,8 @@ function M.setup()
end
function M.on_open()
if package.loaded["bufferline.state"] and lvim.builtin.nvimtree.side == "left" then
require("bufferline.state").set_offset(lvim.builtin.nvimtree.width + 1, "")
if package.loaded["bufferline.state"] and lvim.builtin.nvimtree.setup.view.side == "left" then
require("bufferline.state").set_offset(lvim.builtin.nvimtree.setup.view.width + 1, "")
end
end