David-Kunz / gen.nvim

Neovim plugin to generate text using LLMs with customizable prompts
The Unlicense
977 stars 62 forks source link

[Question] Option to show nothing and just replace the selected text #92

Open muhammad-saleh opened 2 months ago

muhammad-saleh commented 2 months ago

I have a use case where I want to have a shortcut to fix/complete code for me. I want to just press the shortcut and have the selected text replaced with the output from gen.nvim/model.

Is there an option to do that? I think this would be a new display mode?

David-Kunz commented 1 month ago

Hi @muhammad-saleh ,

If the prompt has the option replace = true, it will replace the selected text. Do you want to hide the generation process?

muhammad-saleh commented 1 month ago

@David-Kunz yes correct.

zhuzy-2018 commented 21 hours ago

image I also want this feature, like the extension "continue" in vscode, use gray as suggest complete code. Then all I have to do is press "Tab" to accept it.