jackMort / ChatGPT.nvim

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

Error when trying to use the Run command #207

Closed Tobi-De closed 1 year ago

Tobi-De commented 1 year ago

image

No idea what is happening, I'm pretty new to vim and neovim, If there is any command I can run to get logs or more details to help fix this, please let me know. All the other commands are working flawlessly, I'm using lazy.nvim as my package manager, and this is my config:

  {
    "jackMort/ChatGPT.nvim",
    event = "VeryLazy",
    config = function()
      require("chatgpt").setup({
        api_key_cmd = "pass show nvim_chatgpt_key",
        predefined_chat_gpt_prompts = "https://raw.githubusercontent.com/Tobi-De/awesome-chatgpt-prompts/main/prompts.csv",

      })
    end,
    dependencies = {
      "MunifTanjim/nui.nvim",
      "nvim-lua/plenary.nvim",
      "nvim-telescope/telescope.nvim"
    }
  }
George-Yanev commented 1 year ago

I have the same effect if I run :ChatGPTRun without a parameter.

You should specify for example :ChatGPTRun add_tests

image

Tobi-De commented 1 year ago

I have the same effect if I run :ChatGPTRun without a parameter.

You should see specify for example :ChatGPTRun add_tests

image

Ah yes, silly me, thanks.