nvim: Add vim-grepper and vim-qlist

While we have fzf, for situations where we want to search and load
results in quickfix or location list vim-grepper should come in handy.
vim-qlist enchances ]i/I related bindings for search to load then in
quickfix list.

Signed-off-by: Sanchayan Maity <maitysanchayan@gmail.com>
This commit is contained in:
Sanchayan Maity 2020-04-02 20:14:37 +05:30
parent d9c9780223
commit 7e2ed37f66

View file

@ -74,6 +74,8 @@ Plug 'neomake/neomake'
Plug 'sk1418/QFGrep' Plug 'sk1418/QFGrep'
Plug 'ronakg/quickr-cscope.vim' Plug 'ronakg/quickr-cscope.vim'
Plug 'stefandtw/quickfix-reflector.vim' Plug 'stefandtw/quickfix-reflector.vim'
Plug 'romainl/vim-qlist'
Plug 'mhinz/vim-grepper'
" Text Object plugins " Text Object plugins
Plug 'kana/vim-textobj-user' Plug 'kana/vim-textobj-user'
Plug 'danidiaz/vim-textobj-do-block' Plug 'danidiaz/vim-textobj-do-block'
@ -302,7 +304,8 @@ nnoremap [q :cprevious<CR>
nnoremap ]q :cnext<CR> nnoremap ]q :cnext<CR>
nnoremap [Q :cfirst<CR> nnoremap [Q :cfirst<CR>
nnoremap ]Q :clast<CR> nnoremap ]Q :clast<CR>
nnoremap qs :vimgrep<SPACE> nnoremap qs :Grepper -nojump -query<SPACE>
nnoremap q* :Grepper -nojump -cword<CR>
nnoremap qt :call ToggleQuickfixList()<CR> nnoremap qt :call ToggleQuickfixList()<CR>
nnoremap Lo :lopen<CR> nnoremap Lo :lopen<CR>
nnoremap Lc :lclose<CR> nnoremap Lc :lclose<CR>
@ -310,7 +313,8 @@ nnoremap [l :lprevious<CR>
nnoremap ]l :lnext<CR> nnoremap ]l :lnext<CR>
nnoremap [L :lfirst<CR> nnoremap [L :lfirst<CR>
nnoremap ]L :llast<CR> nnoremap ]L :llast<CR>
nnoremap Ls :lvimgrep<SPACE> nnoremap Ls :Grepper -nojump -noquickfix -query<SPACE>
nnoremap L* :Grepper -nojump -noquickfix -cword<CR>
nnoremap Lt :call ToggleLocationList()<CR> nnoremap Lt :call ToggleLocationList()<CR>
" Key Bindings to help with terminal mode " Key Bindings to help with terminal mode
@ -711,6 +715,16 @@ let g:any_jump_search_prefered_engine = 'ag'
" Lens vim " Lens vim
let g:lens#disabled_filetypes = ['nerdtree', 'fzf', 'qf'] let g:lens#disabled_filetypes = ['nerdtree', 'fzf', 'qf']
" Vim grepper
let g:grepper = {}
let g:grepper.tools = ['rg']
let g:grepper.quickfix = 1
let g:grepper.buffer = 0
let g:grepper.buffers = 0
let g:grepper.switch = 0
let g:grepper.append = 1
let g:grepper.prompt = 0
" ----------------------------- Functions ------------------------------------ " ----------------------------- Functions ------------------------------------
function! NvimGdbNoTKeymaps() function! NvimGdbNoTKeymaps()
tnoremap <silent> <buffer> <Esc> <C-\><C-n> tnoremap <silent> <buffer> <Esc> <C-\><C-n>