https://github.com/benoror/gpg.nvim
Edit GPG encrypted files symmetrically in NeoVIM
https://github.com/benoror/gpg.nvim
neovim neovim-plugin neovim-plugin-lua neovim-plugin-template neovim-plugins nvim nvim-lua nvim-plugin
Last synced: 5 months ago
JSON representation
Edit GPG encrypted files symmetrically in NeoVIM
- Host: GitHub
- URL: https://github.com/benoror/gpg.nvim
- Owner: benoror
- License: mit
- Created: 2025-05-24T06:07:28.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2025-05-30T18:43:54.000Z (7 months ago)
- Last Synced: 2025-07-05T22:40:11.613Z (6 months ago)
- Topics: neovim, neovim-plugin, neovim-plugin-lua, neovim-plugin-template, neovim-plugins, nvim, nvim-lua, nvim-plugin
- Language: Lua
- Homepage:
- Size: 13.7 KB
- Stars: 11
- Watchers: 1
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-neovim-sorted - benoror/gpg.nvim
- awesome-neovim - benoror/gpg.nvim - Edit GPG encrypted files symmetrically. (Terminal Integration / CSV Files)
README
# gpg.nvim
Editing GPG encrypted files symmetrically in NeoVIM

## Install
### Manually
Copy [`plugin/gpg.lua`](https://github.com/benoror/gpg.nvim/blob/main/plugin/gpg.lua) file to your `~/.config/nvim/lua/plugins/` directory
### Using [lazy.nvim](https://github.com/folke/lazy.nvim):
```lua
-- ~/.config/nvim/lua/plugins/gpg.lua
{
"benoror/gpg.nvim",
}
```
## Requirements
- `gpg`
- Optional: `pinentry-mac`
## Usage
All `*.gpg` files will be symmetrically decrypted/encrypted transparently using `gpg` tools
## Credits
### Based off
- From @nickali https://gist.github.com/nickali/89f3743e305db015d0f3ad4ffd325ccb
- https://nali.org/wiki/tech/apps/neovim/#gpg-decrypting-and-encrypting-transparently-with-neovim
- Proposed first by @traut https://gist.github.com/traut/cd19ae2817ab13e0bade1f8a9995029f
- https://www.reddit.com/r/nvim/comments/112a5bi/editing_gpg_encrypted_files_in_neovim/
### Inspired by
https://github.com/jamessan/vim-gnupg
## Further reading
- [Setup GPG on macOS](https://dev.to/zemse/setup-gpg-on-macos-2iib)