-
-
Notifications
You must be signed in to change notification settings - Fork 625
Startup Autocommands #1893
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@mrjones2014 please review #1912 I've not added an |
If nvim-tree loads before legendary.nvim then I won't get the autocmd. Could you just set something like |
This otherwise looks good. But I need a way to tell if the autocmds have already happened before I try to attach to them. |
That makes good sense. I was thinking in terms of lua methods which did not feel right. vim.g pairs well with each autocommand. They are outside of regular lua plugin operations which is necessary for this case. Perhaps other lua plugins should do this. Perhaps some do already. |
Added #1912 |
Many plugins use this pattern. Often in a if vim.g.plugin_name_loaded == true then
return
end
vim.g.plugin_name_loaded = true |
👍 merging |
It is necessary for the user to determine the loaded/setup status of nvim-tree. See #1869 (comment) for use case.
require("nvim-tree").is_setup()
3 is not strictly necessary due to
Event.Ready
however is cheap and may be useful./cc @mrjones2014
The text was updated successfully, but these errors were encountered: