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

Error when installing with vim-plug

Open KroccoHi opened this issue 2 years ago • 4 comments

image I don't know anything about Lua, so I don't know how to set the options from within vim. If someone could point me in the right direction that would be great. Thanks a lot.

KroccoHi avatar Mar 04 '23 06:03 KroccoHi

Is packer necessary to install this plugin?

I also use vim-plug as my plugin manager

n3ry7 avatar Mar 04 '23 10:03 n3ry7

I got this!

add these to your init.vim call plug#begin() Plug 'nvim-lua/plenary.nvim' Plug 'nvim-telescope/telescope.nvim' Plug 'MunifTanjim/nui.nvim' Plug 'jackMort/ChatGPT.nvim' call plug#end()

lua <<EOF -- chat gpt require("chatgpt").setup() EOF

Set environment variable called $OPENAI_API_KEY

worked for me

n3ry7 avatar Mar 04 '23 11:03 n3ry7

I'm not familiar with vim-plug but feel free to create PR with updated README

jackMort avatar Mar 06 '23 10:03 jackMort

Sure.

I will create the PR

n3ry7 avatar Mar 06 '23 11:03 n3ry7

  • https://github.com/jackMort/ChatGPT.nvim/issues/20

MunifTanjim avatar Mar 24 '23 22:03 MunifTanjim