1
0
Fork 0

Better denite grep

This commit is contained in:
Jeremy Kaplan 2018-04-16 09:21:25 -07:00 committed by Jeremy Kaplan
commit 48da6ff1ef

View file

@ -104,9 +104,14 @@ map <silent> ;x :x<CR>
set wildignore+=*.swp,*~ set wildignore+=*.swp,*~
map <silent> ;b :Denite buffer<CR>
map <silent> ;f :Denite file_rec<CR>
call denite#custom#var('file_rec', 'command', call denite#custom#var('file_rec', 'command',
\ ['rg', '--files', '--hidden'], \ ['rg', '--files', '--hidden'],
\) \)
map <silent> ;g :Denite grep<CR>
call denite#custom#var('grep', 'command', ['rg']) call denite#custom#var('grep', 'command', ['rg'])
call denite#custom#var('grep', 'default_opts', call denite#custom#var('grep', 'default_opts',
\ ['--vimgrep', '--no-heading', '--smart-case', '--hidden']) \ ['--vimgrep', '--no-heading', '--smart-case', '--hidden'])
@ -114,16 +119,13 @@ call denite#custom#var('grep', 'recursive_opts', [])
call denite#custom#var('grep', 'pattern_opt', ['--regexp']) call denite#custom#var('grep', 'pattern_opt', ['--regexp'])
call denite#custom#var('grep', 'separator', ['--']) call denite#custom#var('grep', 'separator', ['--'])
call denite#custom#var('grep', 'final_opts', []) call denite#custom#var('grep', 'final_opts', [])
call denite#custom#source('grep', 'converters', ['converter_abbr_word'])
call denite#custom#option("_", { call denite#custom#option("_", {
\ "highlight_matched_char": "DeniteMatched", \ "highlight_matched_char": "DeniteMatched",
\ "highlight_matched_range": "None", \ "highlight_matched_range": "None",
\}) \})
map <silent> ;b :Denite buffer<CR>
map <silent> ;f :Denite file_rec<CR>
map <silent> ;g :Denite grep<CR>
let g:deoplete#enable_at_startup = 1 let g:deoplete#enable_at_startup = 1
let g:deoplete#disable_auto_complete = 1 let g:deoplete#disable_auto_complete = 1
inoremap <expr> <C-n> deoplete#mappings#manual_complete() inoremap <expr> <C-n> deoplete#mappings#manual_complete()