From 805b126491db81208b0273ad153094f8b8da5f50 Mon Sep 17 00:00:00 2001 From: Daniel Lynn Date: Fri, 7 Jan 2022 12:44:44 -0600 Subject: [PATCH] Add hlslens --- nvim/hlslens.vimrc | 11 +++++++++++ nvim/plugins.vimrc | 1 + vimrc | 5 +++++ 3 files changed, 17 insertions(+) create mode 100644 nvim/hlslens.vimrc diff --git a/nvim/hlslens.vimrc b/nvim/hlslens.vimrc new file mode 100644 index 0000000..07ec8d9 --- /dev/null +++ b/nvim/hlslens.vimrc @@ -0,0 +1,11 @@ +noremap n execute('normal! ' . v:count1 . 'n') + \lua require('hlslens').start() +noremap N execute('normal! ' . v:count1 . 'N') + \lua require('hlslens').start() +noremap * *lua require('hlslens').start() +noremap # #lua require('hlslens').start() +noremap g* g*lua require('hlslens').start() +noremap g# g#lua require('hlslens').start() + +" use : instead of +nnoremap l :noh diff --git a/nvim/plugins.vimrc b/nvim/plugins.vimrc index 6ea6ef0..9dc957c 100644 --- a/nvim/plugins.vimrc +++ b/nvim/plugins.vimrc @@ -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' diff --git a/vimrc b/vimrc index f2805ce..bebd67c 100644 --- a/vimrc +++ b/vimrc @@ -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