small fix

This commit is contained in:
2025-01-06 20:05:27 +03:00
parent 8e6b274df1
commit b0da6bf2fb
2 changed files with 12 additions and 1 deletions

View File

@ -10,6 +10,16 @@ return {
winhighlight = "Normal:Normal,FloatBorder:BorderBG,CursorLine:PmenuSel,Search:None",
},
},
hooks = {
after_mount = function(input)
local opts = { buffer = input.bufnr }
vim.keymap.set("i", "<Up>", "<Plug>(searchbox-prev-match)", opts)
vim.keymap.set("i", "<Down>", "<Plug>(searchbox-next-match)", opts)
vim.keymap.set("i", "<S-CR>", "<Plug>(searchbox-prev-match)", opts)
vim.keymap.set("i", "<CR>", "<Plug>(searchbox-next-match)", opts)
end,
},
})
end,
}