-
Notifications
You must be signed in to change notification settings - Fork 1
feat: extend user patterns for autocmd #7
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
base: main
Are you sure you want to change the base?
Conversation
Hey @timeitel thanks for the PR
You can refresh like this 🙂 require('git-prompt-string-lualine').set_prompt_and_refresh()
I am not opposed to adding them. I am just curious if they are actually needed. git-prompt-string-lualine has a filewatch https://github.com/mikesmithgh/git-prompt-string-lualine.nvim/blob/main/lua/git-prompt-string-lualine/autocmd.lua#L35 and I would expect that to trigger a refresh on any git pull/push/commit regardless of how it occurred. Are you not seeing updates when you do a Neogit operation? |
Thanks for mentioning the refresh and adding more events! |
Could you provide an example of the directory structure or steps to reproduce? |
I realised it's not working for bare repos, just fyi |
@timeitel Thanks for the info. Yep, git-prompt-string should just detect a bare repo but can't perform the same as if it was in a working tree. The branch would just look something like |
Sorry I should say, the issue is specifically when using a git worktree. For example, create a worktree, make any git change like commit or push with the neovim terminal, and there's no update in git-prompt-string until refocusing the application. |
Hi, thanks for this plugin. Can the events be extended to also include the ones from Neogit?
It would also be helpful to expose a refresh function if possible for user maps.