Robitx/gp.nvim

How to implement a CommitStaged hook?

abereghici opened this issue · 2 comments

I'm trying to create a hook for generating commit messages based on my staged files. Is there a way to provide the git diff output as a context to the agent?
I've tried to use vim.fn.setreg("", get_git_diff()) but doesn't seem to work.

Check #145 conversation for inspiration.

thank you @Robitx !