diff --git a/lua/nvim-tree.lua b/lua/nvim-tree.lua index ce9837e9..48771b21 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 vim.fn.filereadable(path) == 0 then + if foo.fn.filereadable(path) == 0 then return end