blob: 90d9701ac6df1eed3b7575d251cfdf6b4977b19f [file] [log] [blame]
Skyler Grey012022a2023-01-26 00:38:15 +00001local kopts = {noremap = true, silent = true}
2
3vim.api.nvim_set_keymap('n', 'n',
4 [[<Cmd>execute('normal! ' . v:count1 . 'n')<CR><Cmd>lua require('hlslens').start()<CR>]],
5 kopts)
6vim.api.nvim_set_keymap('n', 'N',
7 [[<Cmd>execute('normal! ' . v:count1 . 'N')<CR><Cmd>lua require('hlslens').start()<CR>]],
8 kopts)
9vim.api.nvim_set_keymap('n', '*', [[*<Cmd>lua require('hlslens').start()<CR>]], kopts)
10vim.api.nvim_set_keymap('n', '#', [[#<Cmd>lua require('hlslens').start()<CR>]], kopts)
11vim.api.nvim_set_keymap('n', 'g*', [[g*<Cmd>lua require('hlslens').start()<CR>]], kopts)
12vim.api.nvim_set_keymap('n', 'g#', [[g#<Cmd>lua require('hlslens').start()<CR>]], kopts)
13
14vim.api.nvim_set_keymap('n', '<Leader>l', ':noh<CR>', kopts)
15
16require("scrollbar").setup({
17 handle = {
18 color = vim.g["lightgrey"].gui,
19 },
20 marks = {
21 Search = { color = vim.g["yellow"].gui },
22 Error = { color = vim.g["red"].gui },
23 Warn = { color = vim.g["red"].gui },
24 Info = { color = vim.g["blue"].gui },
25 Hint = { color = vim.g["cyan"].gui },
26 Misc = { color = vim.g["purple"].gui },
27 },
28 handlers = {
29 search = true,
30 },
31})