From d015d4fe62b254db8484f7b7acbfafc7ce04ccf2 Mon Sep 17 00:00:00 2001 From: Oli Morris Date: Fri, 8 Mar 2024 09:36:58 +0000 Subject: [PATCH] fix: issue customising adapters --- lua/codecompanion/config.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lua/codecompanion/config.lua b/lua/codecompanion/config.lua index e59690e2..5e583e22 100644 --- a/lua/codecompanion/config.lua +++ b/lua/codecompanion/config.lua @@ -59,6 +59,10 @@ local defaults = { M.setup = function(opts) M.options = vim.tbl_deep_extend("force", {}, defaults, opts or {}) + if opts and opts.adapters then + M.options.adapters = opts.adapters + end + M.INFO_NS = vim.api.nvim_create_namespace("CodeCompanion-info") M.ERROR_NS = vim.api.nvim_create_namespace("CodeCompanion-error")