We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8405ecf commit a2e19beCopy full SHA for a2e19be
lua/nvim-tree/lib.lua
@@ -263,8 +263,6 @@ end
263
function M.open(opts)
264
opts = opts or {}
265
266
- local explorer = core.get_explorer()
267
-
268
M.set_target_win()
269
if not core.get_explorer() or opts.path then
270
if opts.path then
@@ -278,6 +276,9 @@ function M.open(opts)
278
276
core.init(cwd)
279
277
end
280
+
+ local explorer = core.get_explorer()
281
282
if should_hijack_current_buf() then
283
view.close_this_tab_only()
284
view.open_in_win()
0 commit comments