Skyler Grey | 012022a | 2023-01-26 00:38:15 +0000 | [diff] [blame] | 1 | local kopts = {noremap = true, silent = true} |
| 2 | |
| 3 | vim.api.nvim_set_keymap('n', 'n', |
| 4 | [[<Cmd>execute('normal! ' . v:count1 . 'n')<CR><Cmd>lua require('hlslens').start()<CR>]], |
| 5 | kopts) |
| 6 | vim.api.nvim_set_keymap('n', 'N', |
| 7 | [[<Cmd>execute('normal! ' . v:count1 . 'N')<CR><Cmd>lua require('hlslens').start()<CR>]], |
| 8 | kopts) |
| 9 | vim.api.nvim_set_keymap('n', '*', [[*<Cmd>lua require('hlslens').start()<CR>]], kopts) |
| 10 | vim.api.nvim_set_keymap('n', '#', [[#<Cmd>lua require('hlslens').start()<CR>]], kopts) |
| 11 | vim.api.nvim_set_keymap('n', 'g*', [[g*<Cmd>lua require('hlslens').start()<CR>]], kopts) |
| 12 | vim.api.nvim_set_keymap('n', 'g#', [[g#<Cmd>lua require('hlslens').start()<CR>]], kopts) |
| 13 | |
| 14 | vim.api.nvim_set_keymap('n', '<Leader>l', ':noh<CR>', kopts) |
| 15 | |
| 16 | require("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 | }) |