-
-
Notifications
You must be signed in to change notification settings - Fork 16
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
Builtin switch hook throws error #24
Comments
My fix for this was merged yesterday but is still pending a release it seems. @polarmutex when do you plan on cutting a new release? |
I'm really new to this, what are hooks by the way? |
@Antony-AXS A hook is basically a function that is executed when a certain event is triggered. Currently you can register a hook on the events CREATE, DELETE and SWITCH (see here). This way you can program custom behavior to integrate the git worktree workflow into your current dev environment. Here is an example out of my own config where I integrated the switch behavior for the oil.nvim file explorer. |
This is what I get with registered hook
update_current_buffer_on_switch
. Lualine branch name isn't updated as well. Probably I'll need to write my own hook for that ?The text was updated successfully, but these errors were encountered: