File tree Expand file tree Collapse file tree 2 files changed +23
-0
lines changed Expand file tree Collapse file tree 2 files changed +23
-0
lines changed Original file line number Diff line number Diff line change @@ -1674,6 +1674,24 @@ e.g. handler for node renamed: >
1674
1674
handler parameters: ~
1675
1675
{buf} `{number} `API buffer handle (buffer number)
1676
1676
1677
+ | nvim_tree_events_startup |
1678
+
1679
+ There are two special startup events in the form of User autocommands:
1680
+
1681
+ `NvimTreeRequired` first `require (" nvim-tree" )`
1682
+ `NvimTreeSetup` `setup ({})` completed
1683
+
1684
+ Immediately before firing: a global variable of the same name will be set to a
1685
+ value of 1.
1686
+
1687
+ Example subscription: >
1688
+ vim.api.nvim_create_autocmd("User", {
1689
+ pattern = "NvimTreeRequired",
1690
+ callback = function(data)
1691
+ ---
1692
+ end,
1693
+ })
1694
+ <
1677
1695
==============================================================================
1678
1696
9. BOOKMARKS *nvim-tree-bookmarks*
1679
1697
Original file line number Diff line number Diff line change @@ -865,7 +865,12 @@ function M.setup(conf)
865
865
866
866
vim .schedule (function ()
867
867
M .on_enter (netrw_disabled )
868
+ vim .g .NvimTreeSetup = 1
869
+ vim .api .nvim_exec_autocmds (" User" , { pattern = " NvimTreeSetup" })
868
870
end )
869
871
end
870
872
873
+ vim .g .NvimTreeRequired = 1
874
+ vim .api .nvim_exec_autocmds (" User" , { pattern = " NvimTreeRequired" })
875
+
871
876
return M
You can’t perform that action at this time.
0 commit comments