Skip to content

Commit

Permalink
Add ChatGPT integration, fix bug with pinentry by requiring X.
Browse files Browse the repository at this point in the history
See this for more details:
jamessan/vim-gnupg#32
  • Loading branch information
maybebyte committed Jul 14, 2023
1 parent 1405799 commit 21fbd49
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .config/gnupg/gpg-agent.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
log-file ${GNUPGHOME}/log
pinentry-timeout 60
pinentry-program /usr/local/bin/pinentry-gnome3
9 changes: 9 additions & 0 deletions .config/nvim/lua/my/plugins.lua
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,18 @@ if os.rename(plugin_file, plugin_file) then
Plug 'plasticboy/vim-markdown'
Plug 'lervag/vimtex'
Plug 'jamessan/vim-gnupg'
Plug 'jackMort/ChatGPT.nvim'
-- Dependencies of ChatGPT.nvim
Plug 'MunifTanjim/nui.nvim'
Plug 'nvim-lua/plenary.nvim'
Plug('nvim-telescope/telescope.nvim', { tag = '0.1.2'})
end

vim.call('plug#end')
else
vim.api.nvim_err_writeln(plugin_file .. ' not found. Plugins are disabled.')
end

require("chatgpt").setup({
api_key_cmd = "gpg --decrypt " .. vim.fn.expand("$HOME") .. "/passwords/api/chatgpt.txt.gpg"
})

0 comments on commit 21fbd49

Please sign in to comment.