Add hlslens

This commit is contained in:
Daniel Lynn 2022-01-07 12:44:44 -06:00
parent 5667f59c6f
commit 805b126491
Signed by: daniel
GPG Key ID: 655C07B9B3DDC88B
3 changed files with 17 additions and 0 deletions

11
nvim/hlslens.vimrc Normal file
View File

@ -0,0 +1,11 @@
noremap <silent> n <Cmd>execute('normal! ' . v:count1 . 'n')<CR>
\<Cmd>lua require('hlslens').start()<CR>
noremap <silent> N <Cmd>execute('normal! ' . v:count1 . 'N')<CR>
\<Cmd>lua require('hlslens').start()<CR>
noremap * *<Cmd>lua require('hlslens').start()<CR>
noremap # #<Cmd>lua require('hlslens').start()<CR>
noremap g* g*<Cmd>lua require('hlslens').start()<CR>
noremap g# g#<Cmd>lua require('hlslens').start()<CR>
" use : instead of <Cmd>
nnoremap <silent> <leader>l :noh<CR>

View File

@ -1,6 +1,7 @@
" Assorted plugins
Plug 'cespare/vim-toml', { 'for': 'toml' }
Plug 'chrisbra/unicode.vim'
Plug 'kevinhwang91/nvim-hlslens'
Plug 'leafgarland/typescript-vim', { 'for': 'typescript' }
Plug 'leafoftree/vim-svelte-plugin', { 'for': 'svelte' }
Plug 'lukas-reineke/indent-blankline.nvim'

5
vimrc
View File

@ -98,6 +98,11 @@ if filereadable(expand("~/.config/nvim/telescope.vimrc"))
source ~/.config/nvim/telescope.vimrc
endif
" Search
if filereadable(expand("~/.config/nvim/hlslens.vimrc"))
source ~/.config/nvim/hlslens.vimrc
endif
" Lightline setup
if filereadable(expand("~/.config/nvim/lightline.vimrc"))
source ~/.config/nvim/lightline.vimrc