aboutsummaryrefslogtreecommitdiff
path: root/lua/user/nvim-tree.lua
diff options
context:
space:
mode:
authorAleksa Vuckovic <aleksa@vuckovic.cc>2023-02-25 01:17:08 +0100
committerAleksa Vuckovic <aleksa@vuckovic.cc>2023-02-25 01:17:08 +0100
commit336b2de4b36ad9eafdef6c5e882bc08a66d7c959 (patch)
tree838df5f79e13b8b598f81113cf83d9c98f9a405f /lua/user/nvim-tree.lua
parentbbe5d2d967a1a77328c71e11823bb57d56ee044c (diff)
pcall now prints error, fixed cmp luasnip
Diffstat (limited to 'lua/user/nvim-tree.lua')
-rw-r--r--lua/user/nvim-tree.lua14
1 files changed, 7 insertions, 7 deletions
diff --git a/lua/user/nvim-tree.lua b/lua/user/nvim-tree.lua
index 932cbbe..7a65321 100644
--- a/lua/user/nvim-tree.lua
+++ b/lua/user/nvim-tree.lua
@@ -1,16 +1,16 @@
--- following options are the default
--- each of these are documented in `:help nvim-tree.OPTION_NAME`
-
-local status_ok, nvim_tree = pcall(require, "nvim-tree")
-if not status_ok then
+local nvim_tree_status, nvim_tree = pcall(require, "nvim-tree")
+if not nvim_tree_status then
+ print("nvim-tree.lua: loading nvim-tree failed")
return
end
-local config_status_ok, nvim_tree_config = pcall(require, "nvim-tree.config")
-if not config_status_ok then
+local nvim_tree_config_status, nvim_tree_config = pcall(require, "nvim-tree.config")
+if not nvim_tree_config_status then
+ print("nvim-tree.lua: loading nvim-tree.config failed")
return
end
+
local tree_cb = nvim_tree_config.nvim_tree_callback
nvim_tree.setup {