feat(event): add au, global: NvimTreeRequired, NvimTreeSetup (#1912)

* feat(even): add autocommands NvimTreeRequired, NvimTreeSetup

* feat(event): add vim.g.NvimTreeRequired, vim.g.NvimTreeSetup
This commit is contained in:
Alexander Courtis
2023-01-15 10:12:50 +11:00
committed by GitHub
parent 3ce0a8e770
commit 1f0fc8d6e8
2 changed files with 23 additions and 0 deletions

View File

@@ -865,7 +865,12 @@ function M.setup(conf)
vim.schedule(function()
M.on_enter(netrw_disabled)
vim.g.NvimTreeSetup = 1
vim.api.nvim_exec_autocmds("User", { pattern = "NvimTreeSetup" })
end)
end
vim.g.NvimTreeRequired = 1
vim.api.nvim_exec_autocmds("User", { pattern = "NvimTreeRequired" })
return M