Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1Password support for multiple accounts #219

Open
ERElli opened this issue Oct 4, 2024 · 0 comments
Open

1Password support for multiple accounts #219

ERElli opened this issue Oct 4, 2024 · 0 comments

Comments

@ERElli
Copy link

ERElli commented Oct 4, 2024

Hey there,
I'm attempting to get my openai_api_key from 1password but I'm having an issue with a flag (--account) being recognized. This flag works when used in the command line directly but is failing when used in the gp.nvim config.

I need to use this flag because I have multiple 1password accounts

This is my lazy.nvim config

return {
	"robitx/gp.nvim",
	lazy=false,
	config = function()
		local conf = {
			openai_api_key = {
				"op",
				"read",
				"op://vault/item/field",
				"--account <account url here>",
			},
		}
		require("gp").setup(conf)
	end
}

This is a screenshot of the error I get after <C-g><C-g> to generate a response
image

This an example of a the op read command failing without the account flag and passing with the account flag
image

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant