I'm creating bindings for the plugin, and have had success with edit_with_instructions() but it's throwing an error for open_chat(). It's in the API so I'm not sure why this wouldn't work specifically for this case.
Any ideas?
108: Error executing lua: [string ":source (no file)"]:4: attempt to call field 'open_chat' (a nil value)
Code that doesn't work: vim.keymap.set("n", "<leader>l", function() chatgpt.open_chat() end)
Code that works: vim.keymap.set("v", "<leader>k", function() chatgpt.edit_with_instructions() end)
Hi y'all,
I'm creating bindings for the plugin, and have had success with
edit_with_instructions()
but it's throwing an error foropen_chat()
. It's in the API so I'm not sure why this wouldn't work specifically for this case.Any ideas?
108: Error executing lua: [string ":source (no file)"]:4: attempt to call field 'open_chat' (a nil value)
Code that doesn't work:
vim.keymap.set("n", "<leader>l", function() chatgpt.open_chat() end)
Code that works:
vim.keymap.set("v", "<leader>k", function() chatgpt.edit_with_instructions() end)
complete_code()
also works.