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")