David-Kunz / gen.nvim

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

Can't get Gen command working #62

Closed xtfocus closed 5 months ago

xtfocus commented 5 months ago

Thanks for the great work. I'm new to neovim, I use nvchad. I installed gen.nvim with the minimal configuration

~/.config/nvim/lua/custom/plugins/plugins.lua
_______
  ...
  {
      "David-Kunz/gen.nvim",
  },
...

. After ollama serve (version is 0.1.22), I opened a text file, and found the Gen command not working. Here's a screenshot. image

xtfocus commented 5 months ago

Turns out I need to add event="VeryLazy"

...
{ 
      "David-Kunz/gen.nvim",
       event = "VeryLazy",
       opts = {
          model = "mistral", -- The default model to use.
...