diff --git a/lua/nvim-tree.lua b/lua/nvim-tree.lua index 48771b21..ce9837e9 100644 --- a/lua/nvim-tree.lua +++ b/lua/nvim-tree.lua @@ -37,7 +37,7 @@ function M.change_root(path, bufnr) end -- don't find inexistent - if foo.fn.filereadable(path) == 0 then + if vim.fn.filereadable(path) == 0 then return end