From 4c922760d893f0df862cc448cd6dba7a43578d31 Mon Sep 17 00:00:00 2001 From: Juliano Barbosa Date: Wed, 30 Aug 2023 21:22:36 -0300 Subject: [PATCH 1/3] feat(nvim): added python path --- init.lua | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/init.lua b/init.lua index 8f672571..d98e684f 100644 --- a/init.lua +++ b/init.lua @@ -43,6 +43,11 @@ P.S. You can delete this when you're done too. It's your config now :) vim.g.mapleader = ' ' vim.g.maplocalleader = ' ' +vim.g.python3_host_prog = os.getenv 'HOME' .. '/.virtualenvs/neovim3/bin/python' +vim.g.python_host_prog = os.getenv 'HOME' .. '/.virtualenvs/neovim3/bin/python3.10' + +-- The line beneath this is called `modeline`. See `:help modeline` +-- vim: ts=2 sts=2 sw=2 et -- Install package manager -- https://github.com/folke/lazy.nvim -- `:help lazy.nvim.txt` for more info @@ -497,7 +502,7 @@ mason_lspconfig.setup_handlers { settings = servers[server_name], filetypes = (servers[server_name] or {}).filetypes, } - end + end, } -- [[ Configure nvim-cmp ]] From b46c2aa0525b11685891aa38946b872ba09d250a Mon Sep 17 00:00:00 2001 From: Juliano Barbosa Date: Wed, 30 Aug 2023 22:02:48 -0300 Subject: [PATCH 2/3] feat(gpt): added chatgpt config for custom prompt --- lua/custom/plugins/chatgpt.lua | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/lua/custom/plugins/chatgpt.lua b/lua/custom/plugins/chatgpt.lua index 07ad59b6..98a9122e 100644 --- a/lua/custom/plugins/chatgpt.lua +++ b/lua/custom/plugins/chatgpt.lua @@ -2,7 +2,13 @@ return { { "jackMort/ChatGPT.nvim", config = function() - require("chatgpt").setup() + require("chatgpt").setup( + { + api_key_cmd = "pass show azure/hypera/oai/token", + predefined_chat_gpt_prompts = + "https://raw.githubusercontent.com/julianobarbosa/custom-gpt-prompts/main/prompt.csv" + } + ) end, dependencies = { "MunifTanjim/nui.nvim", From 6e7efe1fd708281c9c1e215c554461ac76236ee5 Mon Sep 17 00:00:00 2001 From: Juliano Barbosa Date: Wed, 30 Aug 2023 22:32:11 -0300 Subject: [PATCH 3/3] feat(gpt): added open host reference --- lua/custom/plugins/chatgpt.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/lua/custom/plugins/chatgpt.lua b/lua/custom/plugins/chatgpt.lua index 98a9122e..db5d1bfe 100644 --- a/lua/custom/plugins/chatgpt.lua +++ b/lua/custom/plugins/chatgpt.lua @@ -5,6 +5,7 @@ return { require("chatgpt").setup( { api_key_cmd = "pass show azure/hypera/oai/token", + api_host_cmd = "pass show azure/hypera/oai/url", predefined_chat_gpt_prompts = "https://raw.githubusercontent.com/julianobarbosa/custom-gpt-prompts/main/prompt.csv" }