Skip to content

Commit b548cfe

Browse files
authored
fix(#3257): error when calling api.tree.find_file (#3304)
1 parent ec0efb0 commit b548cfe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/nvim-tree/api/impl.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ function M.hydrate_post_setup(api)
229229
api.tree.close_in_this_tab = __(function() require("nvim-tree.view").close_this_tab_only() end)
230230
api.tree.collapse_all = __(function(opts) require("nvim-tree.actions.tree.collapse").all(opts) end)
231231
api.tree.expand_all = en(function(e, n, opts) e:expand_all(n, opts) end)
232-
api.tree.find_file = __(function(opts) require("nvim-tree.actions.tree.find_file").fn(opts) end)
232+
api.tree.find_file = __(function(opts) require("nvim-tree.actions.tree.find-file").fn(opts) end)
233233
api.tree.focus = __(function(opts) require("nvim-tree.actions.tree.open").fn(opts) end)
234234
api.tree.get_node_under_cursor = en(function(e) return e:get_node_at_cursor() end)
235235
api.tree.get_nodes = en(function(e) return e:get_nodes() end)

0 commit comments

Comments
 (0)