From b601b5aa25627f68d3d73ba9269b49e4f04ce126 Mon Sep 17 00:00:00 2001 From: Alexander Courtis Date: Wed, 12 Apr 2023 16:33:14 +1000 Subject: [PATCH] fix(#2133): harden hide_root_folder deprecation (#2134) --- lua/nvim-tree/legacy.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/nvim-tree/legacy.lua b/lua/nvim-tree/legacy.lua index 30249a16..adf658ba 100644 --- a/lua/nvim-tree/legacy.lua +++ b/lua/nvim-tree/legacy.lua @@ -44,7 +44,7 @@ local function refactored(opts) end local function deprecated(opts) - if opts.view.hide_root_folder then + if opts.view and opts.view.hide_root_folder then notify.info "view.hide_root_folder is deprecated, please set renderer.root_folder_label = false" end end