lua grep theming

This commit is contained in:
Barak Michener 2021-07-01 15:30:12 -07:00
parent 2e0dabc7f8
commit 86669142bf
2 changed files with 36 additions and 5 deletions

14
.vimrc
View file

@ -134,8 +134,8 @@ Plug 'sjbach/lusty'
Plug 'mhinz/vim-signify'
Plug 'vim-airline/vim-airline'
Plug 'vim-airline/vim-airline-themes'
Plug 'junegunn/fzf', { 'do': { -> fzf#install() } }
Plug 'junegunn/fzf.vim'
"Plug 'junegunn/fzf', { 'do': { -> fzf#install() } }
"Plug 'junegunn/fzf.vim'
Plug 'airblade/vim-rooter'
"Plug 'bling/vim-bufferline'
Plug 'majutsushi/tagbar'
@ -902,10 +902,14 @@ call denite#custom#var('grep', {
\ })
"nnoremap <silent> <Leader>g :<C-u>Denite -buffer-name=search-buffer grep<CR>
"nnoremap <silent> <Leader>aa :<C-u>RipGrep!<CR>
nnoremap <silent> <Leader>aa :<C-u>RgRoot!<CR>
nnoremap <silent> <Leader>aw :<C-u>RgRoot! <C-r><C-w><CR>
"nnoremap <silent> <Leader>aa :<C-u>RgRoot!<CR>
"nnoremap <silent> <Leader>aw :<C-u>RgRoot! <C-r><C-w><CR>
"nnoremap <C-l> :<C-u>Files! `git rev-parse --show-toplevel`<CR>
nnoremap <C-k> :<C-u>GFiles<CR>
"nnoremap <C-k> :<C-u>GFiles<CR>
nnoremap <C-k> <cmd>lua require('telescope.builtin').git_files()<cr>
nnoremap <silent> <Leader>ag <cmd>lua git_grep_word{ word_match = "-w", only_sort_text = true, search = ''}<cr>
nnoremap <silent> <Leader>aw <cmd>lua git_grep_word{ word_match = "-w", only_sort_text = true }<cr>
" For C++ -- A is a great plugin which allows you to jump from the c file to the
" header and vice-versa. Mneumonic here is headerheader.
nnoremap <Leader>hh :A<CR>