pcall for view

This commit is contained in:
christianchiarulli 2021-07-06 23:34:44 -04:00
parent 0c47dbee49
commit beb1d28b19

View file

@ -65,7 +65,12 @@ M.config = function()
}
end
local view = require "nvim-tree.view"
local view_status_ok, view = pcall(require, "nvim-tree.view")
if not view_status_ok then
return
end
--local view = require "nvim-tree.view"
M.toggle_tree = function()
if view.win_open() then