jackMort / jackMort/ChatGPT.nvim

EditWithInstructions allow prompt injection

Open
#374 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Lua
Stars
4k
Forks
317
PR merge metrics
No merged PRs in 30d

Description

Hello, very good plugin. Extra kudos for the effort you put into the nicer UX.

I think It will be nice if we can configure some 'prompt injection' when you use this feature.
Many times I want to add more code using the current one as context, but rather than including everything, the newly generated code most of the times only includes the new stuff. I have to instruct the bot everytime with something like `make sure to also include the existing parts of the code that are already correct` or stuff like that.
Not sure if prompt-injection is the best workaround, but it's the only thing I can think of

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating the EditWithInstructions entry point and reading how its prompt and configuration are assembled. Determine where a user-configurable instruction could be applied, then verify that the configured text is included when the feature generates an edit.

Written by the indexing model from the issue text.

Assessment

Tech stack
lua, neovim
Domain
tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.