nvim: Drop searchlight and switch to hlslens
This commit is contained in:
parent
42f707adb4
commit
f73f40f5af
4 changed files with 14 additions and 6 deletions
8
nvim/.config/nvim/after/plugin/hlslens.vim
Normal file
8
nvim/.config/nvim/after/plugin/hlslens.vim
Normal file
|
@ -0,0 +1,8 @@
|
|||
noremap <silent> n <Cmd>execute('normal! ' . v:count1 . 'n')<CR><Cmd>lua require('hlslens').start()<CR>zz
|
||||
noremap <silent> N <Cmd>execute('normal! ' . v:count1 . 'N')<CR><Cmd>lua require('hlslens').start()<CR>zz
|
||||
|
||||
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>
|
|
@ -619,6 +619,11 @@ local highlight_groups = {
|
|||
ConflictMarkerOurs = {bg=black, fg=green, style=NONE },
|
||||
ConflictMarkerTheirs = {bg=black, fg=red, style=NONE },
|
||||
ConflictMarkerCommonAncestorsHunk = {bg=black, fg=orange, style=NONE },
|
||||
|
||||
--[[ 4.4.13 hlslens ]]
|
||||
HlSearchLensCur = 'SearchLight',
|
||||
HlSearchLens = 'IncSearch',
|
||||
HlSearchCur = 'SearchLight',
|
||||
}
|
||||
|
||||
-- We do not care about terminals which do not support 256 colors
|
||||
|
|
|
@ -101,11 +101,6 @@ remap('n', '<Leader>n', ':nohlsearch<CR>', { noremap = true, silent = true })
|
|||
remap('n', '0', '^', { noremap = true })
|
||||
-- Just in case you need to go to the very beginning of a line
|
||||
remap('n', '^', '0', { noremap = true })
|
||||
-- Centre the window on each search movement
|
||||
remap('n', 'n', 'nzz', { noremap = true })
|
||||
remap('n', 'N', 'Nzz', { noremap = true })
|
||||
remap('v', 'n', 'nzz', { noremap = true })
|
||||
remap('v', 'N', 'Nzz', { noremap = true })
|
||||
|
||||
-- Make dot work on visually selected lines
|
||||
remap('v', '.', ':norm.<CR>', { noremap = true })
|
||||
|
|
|
@ -18,7 +18,7 @@ local init = function ()
|
|||
'junegunn/fzf.vim',
|
||||
config = "require('modules.fzf')"
|
||||
}
|
||||
use 'PeterRincker/vim-searchlight'
|
||||
use 'kevinhwang91/nvim-hlslens'
|
||||
use 'wincent/ferret'
|
||||
use 'lambdalisue/reword.vim'
|
||||
-- Remove extraneous whitespace when edit mode is exited
|
||||
|
|
Loading…
Reference in a new issue