Skip to content

Commit 6b38f1c

Browse files
committed
docs(#3088): split api pre and post, add more comments
1 parent 4cbe0d7 commit 6b38f1c

3 files changed

Lines changed: 2 additions & 334 deletions

File tree

lua/nvim-tree.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -795,7 +795,7 @@ function M.setup(conf)
795795
vim.g.NvimTreeSetup = 1
796796
vim.api.nvim_exec_autocmds("User", { pattern = "NvimTreeSetup" })
797797

798-
require("nvim-tree.api-impl").hydrate_after_setup(api)
798+
require("nvim-tree.api.impl.post")(api)
799799
end
800800

801801
vim.g.NvimTreeRequired = 1

lua/nvim-tree/api-impl.lua

Lines changed: 0 additions & 332 deletions
This file was deleted.

lua/nvim-tree/api.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,6 @@ api.tree = require("nvim-tree._meta.api.tree")
5151
--
5252
-- Map implementations
5353
--
54-
require("nvim-tree.api-impl").hydrate_init(api)
54+
require("nvim-tree.api.impl.pre")(api)
5555

5656
return api

0 commit comments

Comments
 (0)