Compare commits

...

2 Commits

Author SHA1 Message Date
Radu Macocian (admac) 99a9f3ae12 added smooth scroll 2026-05-12 16:32:42 +02:00
Radu Macocian (admac) 5d1755fe96 changed code companion models 2026-05-12 16:27:32 +02:00
4 changed files with 36 additions and 4 deletions
+2 -2
View File
@@ -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"
}
}
},
+19
View File
@@ -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
+1
View File
@@ -89,6 +89,7 @@ require("lazy").setup({
},
'tpope/vim-surround',
'sphamba/smear-cursor.nvim',
'karb94/neoscroll.nvim',
{
"folke/persistence.nvim",
event = "BufReadPre",
+12
View File
@@ -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' })