Skip to content

Commit

Permalink
feat: install nvim-hlslens
Browse files Browse the repository at this point in the history
  • Loading branch information
ebkn committed Nov 20, 2024
1 parent d255c00 commit 362cdd9
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions vim/dein/instantly/display.toml
Original file line number Diff line number Diff line change
Expand Up @@ -73,3 +73,27 @@ lua <<EOF
require('scrollview').setup()
EOF
'''

# HlSearch lens
[[plugins]]
repo = 'kevinhwang91/nvim-hlslens'
hook_add = '''
lua <<EOF
require('hlslens').setup()
local kopts = {noremap = true, silent = true}
vim.api.nvim_set_keymap('n', 'n',
[[<Cmd>execute('normal! ' . v:count1 . 'n')<CR><Cmd>lua require('hlslens').start()<CR>]],
kopts)
vim.api.nvim_set_keymap('n', 'N',
[[<Cmd>execute('normal! ' . v:count1 . 'N')<CR><Cmd>lua require('hlslens').start()<CR>]],
kopts)
vim.api.nvim_set_keymap('n', '*', [[*<Cmd>lua require('hlslens').start()<CR>]], kopts)
vim.api.nvim_set_keymap('n', '#', [[#<Cmd>lua require('hlslens').start()<CR>]], kopts)
vim.api.nvim_set_keymap('n', 'g*', [[g*<Cmd>lua require('hlslens').start()<CR>]], kopts)
vim.api.nvim_set_keymap('n', 'g#', [[g#<Cmd>lua require('hlslens').start()<CR>]], kopts)
vim.api.nvim_set_keymap('n', '<Leader>l', '<Cmd>noh<CR>', kopts)
EOF
'''

0 comments on commit 362cdd9

Please sign in to comment.