From 30774cac5bc02ab8638ac7667e5eee8e0f41a9a6 Mon Sep 17 00:00:00 2001 From: jdhao Date: Wed, 18 Aug 2021 23:21:51 +0800 Subject: Use nvim-hlslens instead of vim-anzu --- core/plugins.vim | 23 ++++++++--------------- 1 file changed, 8 insertions(+), 15 deletions(-) (limited to 'core/plugins.vim') diff --git a/core/plugins.vim b/core/plugins.vim index f4d2fa3..18e4147 100644 --- a/core/plugins.vim +++ b/core/plugins.vim @@ -63,21 +63,14 @@ onoremap F :call sneak#wrap(v:operator, 2, 1, 1, 1) " or previous match let g:sneak#s_next = 1 -"""""""""""""""""""""""""""""vim-anzu settings""""""""""""""""""""""" -nmap n (anzu-n-with-echo)zzzv -nmap N (anzu-N-with-echo)zzzv - -" Maximum number of words to search -let g:anzu_search_limit = 500000 - -" Message to show for search pattern -let g:anzu_status_format = '/%p [%i/%l]' - -"""""""""""""""""""""""""""""vim-asterisk settings""""""""""""""""""""" -nmap * (asterisk-z*) -nmap # (asterisk-z#) -xmap * (asterisk-z*) -xmap # (asterisk-z#) +""""""""""""""""""""""""""""" settings for nvim-hlslens""""""""""""""" +noremap n execute('normal! ' . v:count1 . 'nzzzv') + \lua require('hlslens').start() +noremap N execute('normal! ' . v:count1 . 'Nzzzv') + \lua require('hlslens').start() + +map * (asterisk-z*)lua require('hlslens').start() +map # (asterisk-z#)lua require('hlslens').start() """""""""""""""""""""""""""""LeaderF settings""""""""""""""""""""" " Do not use cache file -- cgit v1.2.3