Bring the review-gpt experience a brilliant editor
With lazy.nvim
-- plugins above
"vibovenkat123/rgpt.nvim"
-- plugins below
With packer.nvim
-- plugins above
use "vibovenkat123/rgpt.nvim"
-- plugins below
Usage
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
In a file, do:
:ReviewGPT review
You can set keymaps for it too.
json.lua for parsing JSON