mirror of
https://github.com/LunarVim/LunarVim.git
synced 2025-07-21 11:14:42 +02:00
wrap requires in pcall
This commit is contained in:
parent
0e2ad0c1fe
commit
716f127e95
12 changed files with 58 additions and 16 deletions
|
@ -3,6 +3,10 @@
|
|||
--end
|
||||
|
||||
local M = {}
|
||||
local status_ok, nvim_tree_config = pcall(require, "nvim-tree.config")
|
||||
if not status_ok then
|
||||
return
|
||||
end
|
||||
|
||||
M.config = function()
|
||||
local g = vim.g
|
||||
|
@ -52,7 +56,7 @@ M.config = function()
|
|||
symlink = "",
|
||||
},
|
||||
}
|
||||
local tree_cb = require("nvim-tree.config").nvim_tree_callback
|
||||
local tree_cb = nvim_tree_config.nvim_tree_callback
|
||||
|
||||
vim.g.nvim_tree_bindings = {
|
||||
{ key = { "l", "<CR>", "o" }, cb = tree_cb "edit" },
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue