-
Curious how people are handling secrets. I was able to pull my api key from 1password like this: {
"frankroeder/parrot.nvim",
event = "VeryLazy",
dependencies = { 'ibhagwan/fzf-lua', 'nvim-lua/plenary.nvim', 'mrjones2014/op.nvim' },
config = function()
local xai_api_key = require("op").get_secret("xAI", "api_key_neovim")
require("parrot").setup {
-- Providers must be explicitly added to make them available.
providers = {
xai = {
api_key = xai_api_key,
},
},
}
end,
}, and I was hoping it'd only prompt lazily / on demand as soon as I invoke Any ideas on how to make this more on-demand? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
Hi @devth, searching GitHub for this plugin provides you with a lot of configurations: https://github.com/search?utf8=%E2%9C%93&q=frankroeder%2Fparrot.nvim+api_key&type=code&p=3. If you pass a Lua table as the value for the From what I see in the search results, it is a mixture of simple |
Beta Was this translation helpful? Give feedback.
Ah, this works:
When it's a table it just execs shell commands instead?
This might be exactly what I want, but I also want parrot.nvim to cache the value so nvim isn't causing 1p to ask me to auth 1password every few min. Maybe this is the case. I'll keep testing...
Thanks for the excellent plugin!