CoderCookE / vim-chatgpt

Vim Plugin For ChatGPT
The Unlicense
230 stars 29 forks source link

Custom prompts without the "Given the following code snippet" fragment. #36

Closed wilenius closed 5 months ago

wilenius commented 5 months ago

It would be useful if there would be a way to specify custom prompts without the hardcoded "Given the..." sentence in the end. For example, a prompt like this would work better without it:

let g:chat_gpt_custom_prompts = {'grammar': 'Suggest ways to improve the grammar of this sentence. Style: accessible yet academic.'}

CoderCookE commented 5 months ago

Hm.. yea that was an oversight, appreciate the feedback! This commit fixes it. https://github.com/CoderCookE/vim-chatgpt/commit/577dfe047a825ebead3db8523dae25f937218914