Skip to content

Load secrets from 1password lazily on-demand #136

Answered by devth
devth asked this question in Q&A
Discussion options

You must be logged in to vote

Ah, this works:

      require("parrot").setup {
        providers = {
          xai = {
            api_key = { "op", "read", "op://personal/xAI/api_key_neovim", "--no-newline" }
          },
        },
      }

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!

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@devth
Comment options

@devth
Comment options

@devth
Comment options

Answer selected by devth
@frankroeder
Comment options

@devth
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants