/RevbotGPT.nvim

Use AI to automatically give suggestions for your code

Primary LanguageLua

Review-GPT Neovim

Bring the review-gpt experience a brilliant editor

Requirements

Usage

With lazy.nvim

-- plugins above
"vibovenkat123/rgpt.nvim"
-- plugins below

With packer.nvim

-- plugins above
use "vibovenkat123/rgpt.nvim"
-- plugins below

Usage

Config (optional)

Example:

require("rgpt").setup({
    model = "text-davinci-003",
    max_tokens = 200,
    temperature = 0.2,
    top_p = 1,
    frequence_penalty = 1.2,
    presence_penalty = 0.3,
    best_of = 1,
})

All fields are optional

Example:

Example of the usage

In a file, do:

:ReviewGPT review

You can set keymaps for it too.

Credits

json.lua for parsing JSON