| Crates.io | just_nvim |
| lib.rs | just_nvim |
| version | 2.0.2 |
| created_at | 2024-12-12 05:29:50.636723+00 |
| updated_at | 2024-12-12 05:29:50.636723+00 |
| description | Neovim plugin for encrypting and decrypting text files inside neovim using age with ease. |
| homepage | https://github.com/abhi-xyz/just.nvim |
| repository | |
| max_upload_size | |
| id | 1480873 |
| size | 1,031,287 |
Neovim plugin for encrypting and decrypting text files inside neovim using age with ease.
Install Just using your favorite plugin manager. For example, with lazy.nvim:
-- ~/.config/nvim/lua/plugins/just.lua
{
'abhi-xyz/just.nvim',
cmd = { "Just", "J" },
config = function()
local key = require('key')
require('just').setup({
public_key = "ageXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
private_key = key.private_key, -- defined in another lua file which is not included in git for safety
})
end
}
-- ~/.config/nvim/lua/key.lua
return {
private_key = "AGE-SECRET-KEY-XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
}
Just provides the :Just command with the following syntax:
:Just [action]
[action] can be one of:
encrypt,decrypt,Kills the current buffer and switches to a previous buffer or creates a scratch buffer in case there is no buffer to switch, then encrypts the file with the provided age key.
:Just encrypt
:Just decrypt