mirror of
https://github.com/macocianradu/setup.git
synced 2026-07-16 10:38:46 +00:00
Compare commits
2 Commits
815f689f3c
...
99a9f3ae12
| Author | SHA1 | Date | |
|---|---|---|---|
| 99a9f3ae12 | |||
| 5d1755fe96 |
@@ -5,13 +5,13 @@ require('codecompanion').setup({
|
|||||||
opts = {
|
opts = {
|
||||||
title_generation_opts = {
|
title_generation_opts = {
|
||||||
adapter = "openrouter",
|
adapter = "openrouter",
|
||||||
model = "minimax/minimax-m2.7"
|
model = "qwen/qwen3.6-flash"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
summary = {
|
summary = {
|
||||||
generation_opts = {
|
generation_opts = {
|
||||||
adapter = "openrouter",
|
adapter = "openrouter",
|
||||||
model = "minimax/minimax-m2.7"
|
model = "qwen/qwen3.6-flash"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -0,0 +1,19 @@
|
|||||||
|
local neoscroll = require('neoscroll')
|
||||||
|
neoscroll.setup({
|
||||||
|
easing = 'quadratic',
|
||||||
|
})
|
||||||
|
|
||||||
|
local keymap = {
|
||||||
|
['<C-u>'] = function() neoscroll.ctrl_u({ duration = 125 }) end,
|
||||||
|
['<C-d>'] = function() neoscroll.ctrl_d({ duration = 125 }) end,
|
||||||
|
['<C-b>'] = function() neoscroll.ctrl_b({ duration = 200 }) end,
|
||||||
|
['<C-f>'] = function() neoscroll.ctrl_f({ duration = 200 }) end,
|
||||||
|
['<C-y>'] = function() neoscroll.scroll(-0.1, { move_cursor = false, duration = 60 }) end,
|
||||||
|
['<C-e>'] = function() neoscroll.scroll(0.1, { move_cursor = false, duration = 60 }) end,
|
||||||
|
['zt'] = function() neoscroll.zt({ half_win_duration = 125 }) end,
|
||||||
|
['zz'] = function() neoscroll.zz({ half_win_duration = 125 }) end,
|
||||||
|
['zb'] = function() neoscroll.zb({ half_win_duration = 125 }) end,
|
||||||
|
}
|
||||||
|
for key, func in pairs(keymap) do
|
||||||
|
vim.keymap.set({ 'n', 'v', 'x' }, key, func)
|
||||||
|
end
|
||||||
@@ -89,6 +89,7 @@ require("lazy").setup({
|
|||||||
},
|
},
|
||||||
'tpope/vim-surround',
|
'tpope/vim-surround',
|
||||||
'sphamba/smear-cursor.nvim',
|
'sphamba/smear-cursor.nvim',
|
||||||
|
'karb94/neoscroll.nvim',
|
||||||
{
|
{
|
||||||
"folke/persistence.nvim",
|
"folke/persistence.nvim",
|
||||||
event = "BufReadPre",
|
event = "BufReadPre",
|
||||||
|
|||||||
@@ -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>x", "<cmd>!chmod _x %<CR>", { silent = true })
|
||||||
|
|
||||||
vim.keymap.set('n', '<leader>;', ':A<CR>', { desc = 'Alternate file' })
|
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