" Insert mode keymap in dein call denite#custom#map('normal', '', '') call denite#custom#map('normal', '', '') call denite#custom#map('insert', '', '') call denite#custom#map('insert', '', '') call denite#custom#map('insert', '', '') call denite#custom#map('insert', '', '') call denite#custom#map('insert', '', '') call denite#custom#map('insert', '', '') call denite#custom#map('insert', '', '') call denite#custom#source( \ 'file_mru', 'matchers', ['matcher_fuzzy', 'matcher_project_files']) " Matcher use cpsm " if has('python3') " call denite#custom#source( " \ 'file_rec', 'matchers', ['matcher_cpsm']) " endif " pt and ag command on grep source if executable('pt') call denite#custom#var('file_rec', 'command', \ ['pt', '--follow', '--nocolor', '--nogroup', '--hidden', '-g', '']) call denite#custom#var('grep', 'command', \ ['pt', '--nogroup', '--nocolor', '--smart-case', '--hidden']) call denite#custom#var('grep', 'default_opts', []) call denite#custom#var('grep', 'recursive_opts', []) call denite#custom#var('grep', 'separator', ['--']) elseif executable('ag') call denite#custom#var('file_rec', 'command', \ ['ag', '--follow', '--nocolor', '--nogroup', '--hidden', '-g', '']) call denite#custom#var('grep', 'command', \ ['ag', '--nogroup', '--nocolor', '--smart-case', '--hidden']) call denite#custom#var('grep', 'default_opts', []) call denite#custom#var('grep', 'recursive_opts', []) call denite#custom#var('grep', 'separator', ['--']) else echo "Please install [ag] or [pt] " endif