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:
committed by
GitHub
parent
3ce0a8e770
commit
1f0fc8d6e8
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user