summaryrefslogtreecommitdiff
path: root/home-manager/neovim/chatgpt.lua
diff options
context:
space:
mode:
authorJasper Ras <jaspert.ras@gmail.com>2024-11-09 14:26:34 +0100
committerJasper Ras <jaspert.ras@gmail.com>2024-11-09 14:26:34 +0100
commit3fce1b5d9350c116270111e92f2d993e1b518d4d (patch)
treedaada43eb23df53d6a0df3622d4bfe913851d1f3 /home-manager/neovim/chatgpt.lua
parent4211ed3b82be9af26460a0a8d88dce9ce319bb47 (diff)
Inline home-manager
Diffstat (limited to 'home-manager/neovim/chatgpt.lua')
-rw-r--r--home-manager/neovim/chatgpt.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/home-manager/neovim/chatgpt.lua b/home-manager/neovim/chatgpt.lua
new file mode 100644
index 0000000..c71d690
--- /dev/null
+++ b/home-manager/neovim/chatgpt.lua
@@ -0,0 +1,5 @@
+local home = vim.fn.expand("$HOME")
+
+require("chatgpt").setup({
+ api_key_cmd = "gpg --decrypt " .. home .. "/.vim-chatgpt.gpg"
+})