Closed 1orZero closed 2 months ago
@1orZero Hey, sorry for keeping you waiting. Yes, the callback for the Prompt is a good and useful idea.
I've recently made some changes to the signature of M.Prompt so the PR requires some adjustments. Can't push changes to your branch so I made a new PR #157 and pull your commits into it.
@1orZero Hey, sorry for keeping you waiting. Yes, the callback for the Prompt is a good and useful idea.
I've recently made some changes to the signature of M.Prompt so the PR requires some adjustments. Can't push changes to your branch so I made a new PR #157 and pull your commits into it.
All good man! Thanks for the merge!
I am using the power of gp.nvim to generate a Git commit message after the response is complete.
To do this, I added the
on_complete_callback
argument to theM.Prompt
andM.query
functions.I am a new Neovim user and very new to Lua script. This is my 1st PR. Feedback is welcome.
Below is an example of how I setup the git commit function.
Demo:
https://github.com/Robitx/gp.nvim/assets/53516684/9aeebdad-5317-48be-8119-01217fb6971e