mirror of
https://github.com/LunarVim/LunarVim.git
synced 2025-08-03 09:35:26 +02:00
pcall for view
This commit is contained in:
parent
0c47dbee49
commit
beb1d28b19
1 changed files with 6 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue