require('hlslens').setup() local kopts = { noremap = true, silent = true } vim.api.nvim_set_keymap('n', 'n', [[execute('normal! ' . v:count1 . 'n')lua require('hlslens').start()]], kopts) vim.api.nvim_set_keymap('n', 'N', [[execute('normal! ' . v:count1 . 'N')lua require('hlslens').start()]], kopts) vim.api.nvim_set_keymap('n', '*', [[*lua require('hlslens').start()]], kopts) vim.api.nvim_set_keymap('n', '#', [[#lua require('hlslens').start()]], kopts) vim.api.nvim_set_keymap('n', 'g*', [[g*lua require('hlslens').start()]], kopts) vim.api.nvim_set_keymap('n', 'g#', [[g#lua require('hlslens').start()]], kopts) vim.api.nvim_set_keymap('n', 'l', ':noh', kopts)