feat(nvim): add ChatGPT plugin

This commit is contained in:
Stefan Imhoff
2024-02-03 15:07:50 +01:00
parent c324035728
commit c9b82aa985
3 changed files with 30 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
return {
"jackMort/ChatGPT.nvim",
event = "VeryLazy",
keys = {
{
mode = "v",
"<leader>e",
function()
require("chatgpt").edit_with_instructions()
end,
desc = "Edit with instructions",
},
},
config = function()
local home = vim.fn.expand("$HOME")
local file_path = home .. "/.dotfiles/nvim/lua/plugins/chatgpg.txt.gpg"
require("chatgpt").setup({
api_key_cmd = "gpg --decrypt --use-agent " .. file_path,
})
end,
dependencies = {
"MunifTanjim/nui.nvim",
"nvim-lua/plenary.nvim",
"folke/trouble.nvim",
"nvim-telescope/telescope.nvim",
},
}

View File

@@ -0,0 +1,2 @@
Ś
 ÁŔ‰ůĂűŇt.Őp8ă<38>­1¤~Rp@t“r`rŘfM<66>Hâ-áeh‡<N:Ntµ‰G*˘żŃ<<3C>|d¦Éł˛‰&”™î2V§