From d8fedbc2e5bd560c0da360f3816b282273c271b9 Mon Sep 17 00:00:00 2001 From: Tibor Schmidt Date: Sun, 10 Dec 2023 14:35:35 +0100 Subject: [PATCH] docs: readme fixes for better panvimdoc gen --- README.md | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index 0a13d76..d65e341 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Gp (GPT prompt) plugin for Neovim +# Gp.nvim GitHub GitHub Repo stars @@ -7,16 +7,16 @@ GitHub contributors Static Badge -Gp.nvim provides you ChatGPT like sessions and instructable text/code operations in your favorite editor. +Gp (GPT prompt) provides you ChatGPT like sessions and instructable text/code operations in your favorite editor.

-### [5 minute demo from December 2023](https://www.youtube.com/watch?v=X-cT7s47PLo) - -#### [Older 5 minute demo (screen capture, no sound)](https://www.youtube.com/watch?v=wPDcBnQgNCc) +### Youtube demos +- [5-min-demo](https://www.youtube.com/watch?v=X-cT7s47PLo) (December 2023) +- [older-5-min-demo](https://www.youtube.com/watch?v=wPDcBnQgNCc) (screen capture, no sound) ## Goals and Features @@ -88,13 +88,14 @@ use({ Make sure you have OpenAI API key. [Get one here](https://platform.openai.com/account/api-keys) and use it in the [config](#4-configuration). Also consider setting up [usage limits](https://platform.openai.com/account/billing/limits) so you won't get suprised at the end of the month. The OpenAI API key can be passed to the plugin in multiple ways: -| Method | Example | Security Level | -|---------------------------------------------------------------------------------------------------|-----------------------------------------------------------------|----------------| -| hardcoded string | `openai_api_key: "sk-...",` | Low | -| default env var | set `OPENAI_API_KEY` environment variable in shell config | Medium | -| custom env var | `openai_api_key = os.getenv("CUSTOM_ENV_NAME"),` | Medium | -| read from file | `openai_api_key = { "cat", "path_to_api_key" },` | Medium-High | -| password manager | `openai_api_key = { "bw", "get", "password", "OAI_API_KEY" },`| High | + +| Method | Example | Security Level | +|------------------|----------------------------------------------------------------|----------------| +| hardcoded string | `openai_api_key: "sk-...",` | Low | +| default env var | set `OPENAI_API_KEY` environment variable in shell config | Medium | +| custom env var | `openai_api_key = os.getenv("CUSTOM_ENV_NAME"),` | Medium | +| read from file | `openai_api_key = { "cat", "path_to_api_key" },` | Medium-High | +| password manager | `openai_api_key = { "bw", "get", "password", "OAI_API_KEY" },` | High | If `openai_api_key` is a table, Gp runs it asynchronously to avoid blocking Neovim (password managers can take a second or two).