typechecked optargs constructors for nodes

This commit is contained in:
Alexander Courtis
2024-11-06 15:53:39 +11:00
parent 359398db05
commit ac302ae16a
12 changed files with 136 additions and 121 deletions

View File

@@ -25,7 +25,7 @@ function M.init(foldername)
path, err = vim.loop.cwd()
end
if path then
TreeExplorer = require("nvim-tree.explorer")(path)
TreeExplorer = require("nvim-tree.explorer")({ path = path })
else
notify.error(err)
TreeExplorer = nil