aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/nvim/.config
diff options
context:
space:
mode:
authorToby Vincent <tobyv@tobyvin.dev>2024-09-07 16:38:19 -0500
committerToby Vincent <tobyv@tobyvin.dev>2024-09-07 16:38:19 -0500
commit2c31f903bfa20df6659c84e734d43500ca38e0be (patch)
treecd93710298df8fcbd90b763a9184f79d224c59b2 /nvim/.config
parent879bbe8ee8c712cfa223f89d20715c3698ba521d (diff)
fix(nvim): use less context tokens for ollama
Diffstat (limited to 'nvim/.config')
-rw-r--r--nvim/.config/nvim/lua/plugins/codecompanion.lua11
1 files changed, 11 insertions, 0 deletions
diff --git a/nvim/.config/nvim/lua/plugins/codecompanion.lua b/nvim/.config/nvim/lua/plugins/codecompanion.lua
index 0d70b9e..0bb7501 100644
--- a/nvim/.config/nvim/lua/plugins/codecompanion.lua
+++ b/nvim/.config/nvim/lua/plugins/codecompanion.lua
@@ -23,6 +23,17 @@ local M = {
adapter = "ollama",
},
},
+ adapters = {
+ ollama = function()
+ return require("codecompanion.adapters").extend("ollama", {
+ schema = {
+ num_ctx = {
+ default = 8192,
+ },
+ },
+ })
+ end,
+ },
},
},
}