jackMort / ChatGPT.nvim

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

Failing Setup #196

Closed JustinStitt closed 1 year ago

JustinStitt commented 1 year ago

I am attempting to install via Lazy (in LunarVim) but am receiving the following error message:

image

as I am just copy/pasting the documentation I am not sure what could be awry here.

Any help would be greatly appreciated.

LunarVim v1.3 NVIM v0.9

JustinStitt commented 1 year ago

Here's the lua

  {
    "jackMort/ChatGPT.nvim",
    event = "VeryLazy",
    config = function()
      require("chatgpt").setup()
    end,
    dependencies = {
      "MunifTanjim/nui.nvim",
      "nvim-lua/plenary.nvim",
      "nvim-telescope/telescope.nvim"
    },
  },
JustinStitt commented 1 year ago

Fixed it by hard coding my API key into the plugin's Api setup.

alifanov commented 1 year ago

I used export OPENAI_API_KEY=... before starting nvim

shakori999 commented 1 year ago

Fixed it by hard coding my API key into the plugin's Api setup.

can you show me how you did it?