Closed SMT-Przemyslaw-Janik closed 8 months ago
Using vim-plug
this is my config:
Plug 'MunifTanjim/nui.nvim'
Plug 'nvim-lua/plenary.nvim'
Plug 'nvim-telescope/telescope.nvim', { 'commit': '776b509f80dd49d8205b9b0d94485568236d1192' }
Plug 'jackMort/ChatGPT.nvim'
after call plug#end()
put:
lua require('chatgpt').setup()
That might fix the error.
@camAtGitHub thank you, that fixed the issue is there a way to set config settings for ChatGPT.nvim in my .vimrc (e.g. set model to 'gpt-4'), or do I have to edit plugin files?
The easy way is copy the (already set) defaults from the readme put them in your init.vim and then change what you want.
eg.
delete the line: lua require('chatgpt').setup()
and replace it with:
Change gpt-3.5-turbo
to gpt-4
and any other settings you want to modify.
Good Luck
I installed ChatGPT.nvim. I'm trying to execute ChatGPTEditWithInstructions command and I'm getting this error:
Error executing Lua callback: vim/shared.lua:0: after the second argument: expected table, got nil
While trying to execute ChatGPT command, I'm getting this:Error executing Lua callback: vim/plugged/ChatGPT.nvim/lua/chatgpt/flows/chat/base.lua:47: attempt to index field 'popup_layout' (a nil value)
How to fix this?