Edit SOPS encrypted files in a Neovim floating window. Files are decrypted on open and re-encrypted on save.
- Neovim 0.9+
- The
sopsbinary in your$PATH - A working encryption/decryption key (age, PGP, or cloud KMS) configured via
.sops.yaml
{
"jmpTeixeira02/sops.nvim",
cmd = "SopsEdit",
keys = {
{ "<leader>se", "<cmd>SopsEdit<cr>", desc = "Edit SOPS File" },
},
}Run :SopsEdit to edit the current file or pass a specific path:
:SopsEdit
:SopsEdit path/to/secrets.yamlFeatures inside the decrypted buffer:
- Filetype detection matching the source file extension.
- Save natively (
:w) to re-encrypt and write to disk. - Press
qto quit (prompts to save if modified). - Prompt handling on window unload/close.