Skip to content

Latest commit

 

History

History
42 lines (33 loc) · 1.42 KB

README.md

File metadata and controls

42 lines (33 loc) · 1.42 KB

vault.nvim

License: MIT Latest: Release

Utilities to operate vault.
If you use neovim0.4.0+, you can read secrets with floating window.

ss

Installation

To install using Vim-Plug:

" add this line to your .vimrc file
Plug 'cappyzawa/vault.nvim'

Supported commands

Command Description
VaultPathPrefix set your secret path's prefix.
VaultField set your secret's field. default:value.
VaultRead vault read -field <field> <path_prefix>/<selected string>

In order to execute VaultRead, it is necessary to be able to communicate with vault api.

$ export VAULT_ADDR=https://your.vault.com
$ export VAULT_TOKEN=XXXXXXXXXX

Key mappings

If g:vault_no_default_mappings is not set to v:true, this plugin also defines following default mapping.

Map Key Command
nmap <Leader>vpp VaultPathPrefix
nmap <Leader>vf VaultField
xmap <Leader>vr VaultRead
nmap <Leader>vr VaultRead

VaultRead reads the secret of the selected string and displays it in the popup window.(xmap)

When popup is open, execute VaultRead to close it.(nmap)