mirror of
https://github.com/macocianradu/setup.git
synced 2026-07-16 02:28:47 +00:00
changed code companion models
This commit is contained in:
@@ -5,13 +5,13 @@ require('codecompanion').setup({
|
||||
opts = {
|
||||
title_generation_opts = {
|
||||
adapter = "openrouter",
|
||||
model = "minimax/minimax-m2.7"
|
||||
model = "qwen/qwen3.6-flash"
|
||||
}
|
||||
},
|
||||
summary = {
|
||||
generation_opts = {
|
||||
adapter = "openrouter",
|
||||
model = "minimax/minimax-m2.7"
|
||||
model = "qwen/qwen3.6-flash"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
@@ -40,3 +40,15 @@ vim.keymap.set("n", "<leader>s", [[:%s/\<<C-r><C-w>\>/<C-r><C-w>/gi<Left><Left><
|
||||
vim.keymap.set("n", "<leader>x", "<cmd>!chmod _x %<CR>", { silent = true })
|
||||
|
||||
vim.keymap.set('n', '<leader>;', ':A<CR>', { desc = 'Alternate file' })
|
||||
vim.keymap.set('n', '<leader>\\', function()
|
||||
local path = vim.fn.expand('%:p')
|
||||
local target
|
||||
if path:find('/pos_loyalty_new/', 1, true) then
|
||||
target = path:gsub('/pos_loyalty_new/', '/pos_loyalty/')
|
||||
elseif path:find('/pos_loyalty/', 1, true) then
|
||||
target = path:gsub('/pos_loyalty/', '/pos_loyalty_new/')
|
||||
else
|
||||
return vim.notify('Not in pos_loyalty or pos_loyalty_new', vim.log.levels.WARN)
|
||||
end
|
||||
vim.cmd('edit ' .. vim.fn.fnameescape(target))
|
||||
end, { desc = 'Toggle pos_loyalty ↔ pos_loyalty_new' })
|
||||
|
||||
Reference in New Issue
Block a user