Install ChatGPT.nvim
mainTo install ChatGPT.nvim, ensure you have curl installed and an OpenAI API key. You can manage your API key via the api_key_cmd configuration option or the $OPENAI_API_KEY environment variable.
Dependencies
MunifTanjim/nui.nvimnvim-lua/plenary.nvimnvim-telescope/telescope.nvimfolke/trouble.nvim(optional)
-- Lazy.nvim
{
"jackMort/ChatGPT.nvim",
event = "VeryLazy",
config = function()
require("chatgpt").setup()
end,
dependencies = {
"MunifTanjim/nui.nvim",
"nvim-lua/plenary.nvim",
"folke/trouble.nvim", -- optional
"nvim-telescope/telescope.nvim"
}
}