Skip to content

Neogit autocmd for integration with outside plugins #69

@DonnieWest

Description

@DonnieWest

Use case:

Whenever neogit updates the state of git, other plugins that deal with git need a mechanism to be informed of changes. Otherwise, the state of those plugins become inconsistent with the actual state of the project.

For example, vim-gitgutter will still display code as uncommitted when actually it's been committed with neogit

Solution:

Create an autocmd for neogit that other plugins (or the user) can use to update those plugins. For example: we already have a __NeogitStatusRefresh function. If we expose that as an autocmd it would allow us to do:

autocmd User NeogitStatusRefresh :GitGutter to inform vim-gitgutter that our project state has changed

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions