summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorjiangyinzuo <jiangyinzuo@foxmail.com>2024-03-08 14:26:19 +0800
committerjiangyinzuo <jiangyinzuo@foxmail.com>2024-03-08 14:26:19 +0800
commit6d77f57ae9e4e11fc4785d7d285f893c939818b6 (patch)
tree65d6ba9c4a688f973fe635439a9c5ef1ebedf218 /README.md
parente0e03cf9ca218cd3f8f9afe0a219aca7470fa4f5 (diff)
downloadvim-ai-6d77f57ae9e4e11fc4785d7d285f893c939818b6.tar.gz
feat: add an option to customize api key file location
Diffstat (limited to 'README.md')
-rw-r--r--README.md6
1 files changed, 6 insertions, 0 deletions
diff --git a/README.md b/README.md
index da76953..18ac762 100644
--- a/README.md
+++ b/README.md
@@ -40,6 +40,12 @@ echo "YOUR_OPENAI_API_KEY,YOUR_OPENAI_ORG_ID" > ~/.config/openai.token
export OPENAI_API_KEY="YOUR_OPENAI_API_KEY,YOUR_OPENAI_ORG_ID"
```
+The default api key file location is `~/.config/openai.token`, but you can change it by setting the `g:vim_ai_token_file_path` in your `.vimrc` file:
+
+```vim
+let g:vim_ai_token_file_path = '~/.config/openai.token'
+```
+
### Using `vim-plug`
```vim