SOPS support for neovim.
{
"diogo464/sops.nvim",
-- see the configuration section bellow for available options.
opts = {}
}{
--- custom path for the sops binary
sops_path = "",
--- create user commands
user_commands = true,
}SopsEncrypt: encrypts the current buffer.SopsDecrypt: decrypts the current buffer.SopsView: decrypts the current buffer and shows the output in a scratch buffer.SopsEdit: decrypts the current buffer and re-encrypts it on write.
---encrypt the given buffer
---@param bufnr? number
sops.encrypt(bufnr)
---decrypt the given buffer
---@param bufnr? number
sops.decrypt(bufnr)
---edit the given buffer.
---this will decrypt it and re-encrypt it on the next write.
---@param bufnr? number
sops.edit(bufnr)
---decrypt the buffer and show the output on a scratch buffer
---@param bufnr? number
sops.view(bufnr)