Skip to content

Commit 385514a

Browse files
committed
feat: allow changing root to dir
1 parent 2bc725a commit 385514a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/nvim-tree.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ function M.change_root(path, bufnr)
3535
end
3636

3737
-- don't find inexistent
38-
if vim.fn.filereadable(path) == 0 then
38+
if vim.fn.filereadable(path) == 0 and vim.fn.isdirectory(path) == 0 then
3939
return
4040
end
4141

0 commit comments

Comments
 (0)