From e96bf86ff5a096f42e408ba878ebf839f71fd4c2 Mon Sep 17 00:00:00 2001 From: Adriel Perkins Date: Sat, 24 Feb 2024 22:53:00 -0500 Subject: [PATCH] feat: add ogpt basic config --- .config/nvim/lua/plugins/init.lua | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/.config/nvim/lua/plugins/init.lua b/.config/nvim/lua/plugins/init.lua index f48690a..65122b4 100644 --- a/.config/nvim/lua/plugins/init.lua +++ b/.config/nvim/lua/plugins/init.lua @@ -102,6 +102,26 @@ local plugs = { init = function() require('stay-centered').setup{} end + }, + -- Simple, minimal Lazy.nvim configuration + { + "huynle/ogpt.nvim", + event = "VeryLazy", + opts = { + default_provider = "ollama", + providers = { + ollama = { + api_host = os.getenv("OLLAMA_API_HOST") or "http://localhost:11434", + api_key = os.getenv("OLLAMA_API_KEY") or "", + } + } + }, + dependencies = { + "MunifTanjim/nui.nvim", + "nvim-lua/plenary.nvim", + "nvim-telescope/telescope.nvim" + } + }, } -- Other Optionals