I switched from ctrlp to denite a while back and love it. Here's the relevant part of my vimrc with ripgrep and some keybinds:
if executable('rg') call denite#custom#var('file_rec', 'command', ['rg', '--files', '--glob', '!.git']) call denite#custom#var('grep', 'command', ['rg']) call denite#custom#var('grep', 'recursive_opts', []) call denite#custom#var('grep', 'final_opts', []) call denite#custom#var('grep', 'separator', ['--']) call denite#custom#var('grep', 'default_opts', ['--vimgrep', '--no-heading', '--ignore-case']) else call denite#custom#var('file_rec', 'command', \ ['grep', '--follow', '--nocolor', '--nogroup', '-g', '']) endif " allow grep source filtering on either path or text call denite#custom#source('grep', 'converters', ['converter_abbr_word']) call denite#custom#map('insert', '<C-h>', '<denite:move_to_first_line>', 'noremap') call denite#custom#map('insert', '<C-j>', '<denite:move_to_next_line>', 'noremap') call denite#custom#map('insert', '<C-k>', '<denite:move_to_previous_line>', 'noremap') call denite#custom#map('insert', '<C-l>', '<denite:move_to_last_line>', 'noremap') call denite#custom#option('default', 'prompt', '>') call denite#custom#option('default', 'cursor_wrap', v:true) nnoremap <C-p> :Denite -direction=topleft file_rec<CR> nnoremap <space>/ :Denite -direction=topleft grep<CR> nnoremap <space>f :Denite -direction=topleft -no-quit -mode=normal grep:.<CR> nnoremap <space>s :Denite -direction=topleft buffer<CR>
Very cool and thanks for sharing this! I’ll have to checkout denite
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I switched from ctrlp to denite a while back and love it. Here's the relevant part of my vimrc with ripgrep and some keybinds:
Very cool and thanks for sharing this! I’ll have to checkout denite