David-Kunz / gen.nvim

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

feat: support for Docker container; printing command stderr to output window #24

Closed wishuuu closed 8 months ago

wishuuu commented 8 months ago

This plugin looks awesome, but unfortunately, due to tech stack at my job, I'm forced to use Windows for development, so I have to run ollama in Docker container.

I've decided to add Docker container support for users as one of default supported ways to use plugin. To achive that i allowed users to specify container option. It accepts name of docker container as string and if provided changes few plugin behaviours:

During process i was struggling with command returning error output to stderr, that i couldn't see, so I also implemented additional boolean option debugCommand that if set to true, will print stderr of command to output window. I've decided to left it as part of this PR, as it may be usefull for future development and users having problems with not working custom command.

Best regards Oskar