ChatGPT.nvim icon indicating copy to clipboard operation
ChatGPT.nvim copied to clipboard

Error at `:qa` after running `:ChatGPTEditWithInstructions`

Open fjchen7 opened this issue 3 years ago • 0 comments

If I run :ChatGPTEditWithInstructions in current session and then quit nvim by :qa, then error happens:

image

However I can't find the buffer 8 image

Here is my configuration

return {
  -- Coding with ChatGPT
  "jackMort/ChatGPT.nvim",
  dependencies = {
    "MunifTanjim/nui.nvim",
    "nvim-lua/plenary.nvim",
    "nvim-telescope/telescope.nvim"
  },
  keys = {
    { "<leader>t", "<cmd>ChatGPT<cr>", desc = "ChatGPT" },
    { "<leader><C-t>", "<cmd>ChatGPTActAs<cr>", desc = "ChatGPT with awesome prompt" },
    { "<leader>T", "<cmd>ChatGPTEditWithInstructions<cr>", mode = { "x", "n" }, desc = "ChatGPT with code" },
  },
  opts = {
    keymaps = {
      scroll_up = "<C-b>",
      scroll_down = "<C-f>",
    }
  }
}

Is this a bug? how to resolve this? Thanks!

PS: BTW, it seems keymaps close can't work in :ChatGPTEditWithInstructions. <Esc> can't close prompt.

fjchen7 avatar Feb 01 '23 03:02 fjchen7