jackMort / ChatGPT.nvim

ChatGPT Neovim Plugin: Effortless Natural Language Generation with OpenAI's ChatGPT API
Apache License 2.0
3.75k stars 312 forks source link

Add option to open 'ChatGPTRun explain_code' in split #183

Open edshamis opened 1 year ago

edshamis commented 1 year ago

Currently, ChatGPTRun explain_code opens the answer in floating window hiding the explained code, which is not continent and not preservable in case one wants to keep the answer for later use. Please add support to open the answer in split. Or maybe there's existing nvim way to convert floating win to split? Couldn't find one...

edshamis commented 1 year ago

Actually it can be done by key map to copy, split and paste Unless someone implements the config setting for the default behavior

kevintraver commented 7 months ago

Actually it can be done by key map to copy, split and paste Unless someone implements the config setting for the default behavior

Can you show an example of this?

kevintraver commented 7 months ago

using a split instead of a float would allow integration with edgy.nvim