Open andy941 opened 3 months ago
Hi @andy941 ,
Thanks for this nice suggestion. Indeed, gen.nvim
as of now is designed for short-lived conversations. I have to see how to keep the conversation alive.
I noticed that LLMs do not mark codeblocks with the language name so the syntax highlight is lost
Yes, with some prompt engineering it will work (depending how smart the model is), an example can be found here: https://github.com/David-Kunz/gen.nvim/blob/0be6ca0cdfe45a7b6537cbf41bd22a420c05be85/lua/gen/prompts.lua#L34
Best regards, David
Hi, thank you for this plugin, I love the simplicity and effectiveness.
I have a couple of ideas to improve the chat/prompt interface. I find myself using the Chat or Ask options frequently as a conversation, meaning I call Gen Chat multiple times to refine the answer I get. I think this is one of the best features of LLMs over simple search engines. It would be nice to have a floating window that I can toggle that has a prompt section where I can interact with the LLM as a coding assistant. Currently if I close the window the conversation is entirely lost.
I use headlines.nvim to improve markdown/quarto rendering in neovim but I noticed that LLMs do not mark codeblocks with the language name so the syntax highlight is lost. That can however be forced by specifically asking it in the prompt most times. I am not a prompt engineer so there are probably proper ways to do this.
One cool thing is pairing it with markdown-preview.nvim which already has blazing fast live update. I have a second vertical monitor so that could be an amazing way to have the LLM conversation visible even while the floating window is toggled off (see above) and then I can toggle it on again to copy/paste/accept the prompt or keep interacting. For now it works, just start a prompt and the invoke the preview while the LLM answer is still typing. It does not autoclose the browser window though, not sure why. It should do that automatically when the buffer is deleted (is the buffer still hidden somewhere?). The browser preview would be great to increase the screen space available since it can live on a different screen. It is also rendered in a pretty and customizable way. Some LLMs can write latex math so that should be handled too.
P.S. the text in the floating markdown window does not wrap. it does wrap in the split window though.
I hope this can give you some ideas. Thank you again for the great plugin.
Andrea