From b2f55f8e6223f8ecb2fb37009654ff6036dafe5d Mon Sep 17 00:00:00 2001 From: Eduardo Cuducos <4732915+cuducos@users.noreply.github.com> Date: Wed, 27 May 2026 12:34:33 -0400 Subject: [PATCH] Cleans up codecompanion.nvim --- .config/nvim/lua/config/codecompanion.lua | 34 ----------------------- 1 file changed, 34 deletions(-) delete mode 100644 .config/nvim/lua/config/codecompanion.lua diff --git a/.config/nvim/lua/config/codecompanion.lua b/.config/nvim/lua/config/codecompanion.lua deleted file mode 100644 index 66dd4aa..0000000 --- a/.config/nvim/lua/config/codecompanion.lua +++ /dev/null @@ -1,34 +0,0 @@ -local extras = table.concat({ - "When replying with code, the code must:", - "- Be modern production-ready, clean and expressive code", - "- Use code optimized for computational resources (memory and CPU)", - "- Avoid useless comments, the code should be expressive by itself", - "- If in Python, avoid generic imports as `import foo` (use `from foo import bar` instead)", - "- If in Go, keep short scope variable names short", -}, "\n") - -require("codecompanion").setup({ - ignore_warnings = true, - display = { diff = { enabled = false } }, - adapters = { - http = { - ["deepseek-chat"] = function() - return require("codecompanion.adapters.http").extend("deepseek", { - schema = { model = { default = "deepseek-chat" } }, - }) - end, - }, - }, - strategies = { - chat = { adapter = "deepseek-chat" }, - inline = { adapter = "deepseek-chat" }, - }, - opts = { - system_prompt = function(ctx) - return ctx.default_system_prompt .. extras - end, - }, -}) - -vim.keymap.set({ "n", "v" }, "ci", "CodeCompanion") -vim.keymap.set({ "n", "v" }, "cc", "CodeCompanionChat Toggle") -- knotmirror 0.0.1