do not touch bufferline if nvimtree is on the right side

This commit is contained in:
Abouzar Parvan 2021-07-27 23:54:01 +04:30 committed by GitHub
parent 4b8b2b3f71
commit 025cc3e684
WARNING! Although there is a key with this ID in the database it does not verify this commit! This commit is SUSPICIOUS.
GPG key ID: 4AEE18F83AFDEB23

View file

@ -77,7 +77,7 @@ M.toggle_tree = function()
require("bufferline.state").set_offset(0)
end
else
if package.loaded["bufferline.state"] then
if package.loaded["bufferline.state"] and lvim.builtin.nvimtree.side == "left" then
-- require'bufferline.state'.set_offset(31, 'File Explorer')
require("bufferline.state").set_offset(31, "")
end