David-Kunz / gen.nvim

Neovim plugin to generate text using LLMs with customizable prompts
The Unlicense
1.15k stars 87 forks source link

No output if the model is missing #71

Closed Mte90 closed 6 months ago

Mte90 commented 7 months ago

I am on linux and I installed Ollama (and I see running).

When I try the :Gen command anything generate a tiny window empty: immagine

I was able also to generate a big window inside the code but I see if the cursor is on the Neotree buffer open inside that. There isn't any parameter to define what filetype/buffer exclude.

David-Kunz commented 7 months ago

Hi @Mte90 ,

I'm not sure what the root cause is, could you enable the debug = true option and show me what's in :messages?

Mte90 commented 7 months ago

So the readme doesn't mention to install the ollama model but there isn't any report for the error: immagine

Mte90 commented 7 months ago

Now works but the window is very tiny:

immagine

Mte90 commented 7 months ago

immagine

So a recap of my issues:

David-Kunz commented 7 months ago

Hi @Mte90 ,

Thank you for checking.

I will check if we can make errors more apparent. Regarding the issue with the window: The window size depends on your current window, in your screenshot, could you kindly check if the window is bigger if you invoke it from the right split?

Thanks and best regards, David

Mte90 commented 7 months ago

So I tried running nvim direct to a file and not opening the the neotree sidebar. I am getting the same issue.

Looking at the code https://github.com/David-Kunz/gen.nvim/blob/85a739cea06148a56d52f26b01d63de6671ce4ce/lua/gen/init.lua#L137 it is a different buffer compraed to the one with the code. On my tests it is 7 but the code is on 1 and doesn't have a filetype. Maybe ggets confused with the output window?