diff --git a/.config/nvim/after/plugin/codecompanion.lua b/.config/nvim/after/plugin/codecompanion.lua index ccb9cad..08c5fcf 100644 --- a/.config/nvim/after/plugin/codecompanion.lua +++ b/.config/nvim/after/plugin/codecompanion.lua @@ -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" } } }, diff --git a/.config/nvim/lua/wicked/remap.lua b/.config/nvim/lua/wicked/remap.lua index 72aa946..9b5e2c0 100644 --- a/.config/nvim/lua/wicked/remap.lua +++ b/.config/nvim/lua/wicked/remap.lua @@ -1,5 +1,5 @@ vim.g.mapleader = " " -vim.keymap.set("n", "pv", function () +vim.keymap.set("n", "pv", function() require("oil").toggle_float() end) @@ -37,6 +37,18 @@ vim.keymap.set("n", "k", "lnextzz") vim.keymap.set("n", "j", "lprevzz") vim.keymap.set("n", "s", [[:%s/\<\>//gi]]) -vim.keymap.set("n", "x", "!chmod _x %", { silent = true}) +vim.keymap.set("n", "x", "!chmod _x %", { silent = true }) vim.keymap.set('n', ';', ':A', { desc = 'Alternate file' }) +vim.keymap.set('n', '\\', 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' })