nvim: Drop unneeded plugins & use incsearch for automatic nohlsearch

Signed-off-by: Sanchayan Maity <maitysanchayan@gmail.com>
This commit is contained in:
Sanchayan Maity 2020-04-22 09:09:06 +05:30
parent 42fcd983ad
commit c880a370d4

View file

@ -101,13 +101,9 @@ Plug 'Yggdroot/indentLine'
Plug 'voldikss/vim-floaterm' Plug 'voldikss/vim-floaterm'
" Smooth scrolling " Smooth scrolling
Plug 'psliwka/vim-smoothie' Plug 'psliwka/vim-smoothie'
" Auto correction
Plug 'sedm0784/vim-you-autocorrect', { 'for': [ 'text', 'markdown' ] }
Plug 'rhysd/vim-grammarous', { 'for': [ 'text', 'markdown' ] }
" Handle line & column jump specifications as found in stack traces " Handle line & column jump specifications as found in stack traces
Plug 'wsdjeg/vim-fetch' Plug 'wsdjeg/vim-fetch'
" Miscellaneous " Miscellaneous
Plug 'junegunn/vim-slash'
Plug 'andymass/vim-matchup' Plug 'andymass/vim-matchup'
Plug 'liuchengxu/vim-which-key' Plug 'liuchengxu/vim-which-key'
Plug 'farmergreg/vim-lastplace' Plug 'farmergreg/vim-lastplace'
@ -148,6 +144,7 @@ set nofoldenable " Open folds by default
set undofile " Enable undo persistence across sessions set undofile " Enable undo persistence across sessions
set hidden set hidden
set noautochdir set noautochdir
set hlsearch
" Wild menu " Wild menu
set wildmenu set wildmenu
@ -362,6 +359,13 @@ map <Leader>h <Plug>(easymotion-linebackward)
noremap <silent><expr> / incsearch#go(<SID>incsearch_config()) noremap <silent><expr> / incsearch#go(<SID>incsearch_config())
noremap <silent><expr> ? incsearch#go(<SID>incsearch_config({'command': '?'})) noremap <silent><expr> ? incsearch#go(<SID>incsearch_config({'command': '?'}))
noremap <silent><expr> g/ incsearch#go(<SID>incsearch_config({'is_stay': 1})) noremap <silent><expr> g/ incsearch#go(<SID>incsearch_config({'is_stay': 1}))
" Incremental search
map n <Plug>(incsearch-nohl-n)
map N <Plug>(incsearch-nohl-N)
map * <Plug>(incsearch-nohl-*)
map # <Plug>(incsearch-nohl-#)
map g* <Plug>(incsearch-nohl-g*)
map g# <Plug>(incsearch-nohl-g#)
" Tag helpers " Tag helpers
nnoremap <C-\> :vsp <CR>:exec("tag ".expand("<cword>"))<CR> nnoremap <C-\> :vsp <CR>:exec("tag ".expand("<cword>"))<CR>
@ -505,6 +509,9 @@ let g:grepper.switch = 0
let g:grepper.append = 0 let g:grepper.append = 0
let g:grepper.prompt = 0 let g:grepper.prompt = 0
" Easymotion incsearch
let g:incsearch#auto_nohlsearch = 1
" Deoplete " Deoplete
let g:deoplete#enable_at_startup = 0 let g:deoplete#enable_at_startup = 0
let g:deoplete#sources#rust#disable_keymap = 1 let g:deoplete#sources#rust#disable_keymap = 1