A plugin for editing gpg
encrypted files.
Requires version 0.10
or newer.
require('packer').startup(function(use)
use('kupospelov/nvim-gpg')
end)
require('lazy').setup({
{ 'kupospelov/nvim-gpg' },
})
The default configuration:
local config = {
encrypt_cmd = {
'gpg2',
'--batch',
'--no-tty',
'--yes',
'--default-recipient-self',
'-eo',
},
decrypt_cmd = { 'gpg2', '--batch', '--no-tty', '--yes', '-d' },
}
Settings can be changed using the setup
function that accepts a table with the following fields:
encrypt_cmd
contains thegpg
command that encrypts the file. The last argument must be--output
.decrypt_cmd
contains thegpg
command that writes the decrypted file to standard output.
local gpg = require('gpg')
gpg.setup()
- Support non-default recipients.