From bdb76f152a60b91d82dc26ae584aa5b42220adbf Mon Sep 17 00:00:00 2001 From: Stefan Lendl Date: Tue, 26 Mar 2019 15:35:14 +0100 Subject: [PATCH] Update denite to use file/rec instead of file_rec (#2702) --- autoload/SpaceVim/layers/denite.vim | 6 +++--- config/plugins/denite.vim | 12 ++++++------ 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/autoload/SpaceVim/layers/denite.vim b/autoload/SpaceVim/layers/denite.vim index 1e94a5ec8..7be9e490a 100644 --- a/autoload/SpaceVim/layers/denite.vim +++ b/autoload/SpaceVim/layers/denite.vim @@ -111,7 +111,7 @@ function! SpaceVim#layers#denite#config() abort let lnum = expand('') + s:lnum - 1 call SpaceVim#mapping#space#def('nnoremap', ['f', 'f'], 'call call(' - \ . string(s:_function('s:warp_denite')) . ', ["DeniteBufferDir file_rec"])', + \ . string(s:_function('s:warp_denite')) . ', ["DeniteBufferDir file/rec"])', \ ['Find files in the directory of the current buffer', \ [ \ '[SPC f f] is to find files in the directory of the current buffer', @@ -123,7 +123,7 @@ function! SpaceVim#layers#denite#config() abort let lnum = expand('') + s:lnum - 1 call SpaceVim#mapping#space#def('nnoremap', ['p', 'f'], 'call call(' - \ . string(s:_function('s:warp_denite')) . ', ["Denite file_rec"])', + \ . string(s:_function('s:warp_denite')) . ', ["Denite file/rec"])', \ ['find files in current project', \ [ \ '[SPC p f] is to find files in the root of the current project', @@ -132,7 +132,7 @@ function! SpaceVim#layers#denite#config() abort \ ] \ ], \ 1) - nnoremap :call warp_denite('Denite file_rec') + nnoremap :call warp_denite('Denite file/rec') let lnum = expand('') + s:lnum - 1 diff --git a/config/plugins/denite.vim b/config/plugins/denite.vim index 7692e44b0..7d9b184d6 100644 --- a/config/plugins/denite.vim +++ b/config/plugins/denite.vim @@ -36,13 +36,13 @@ if !s:sys.isWindows if executable('rg') " For ripgrep " Note: It is slower than ag - call denite#custom#var('file_rec', 'command', + call denite#custom#var('file/rec', 'command', \ ['rg', '--hidden', '--files', '--glob', '!.git', '--glob', ''] \ + zvim#util#Generate_ignore(g:spacevim_wildignore, 'rg') \ ) elseif executable('ag') - " Change file_rec command. - call denite#custom#var('file_rec', 'command', + " Change file/rec command. + call denite#custom#var('file/rec', 'command', \ ['ag' , '--nocolor', '--nogroup', '-g', ''] \ + zvim#util#Generate_ignore(g:spacevim_wildignore, 'ag') \ ) @@ -51,13 +51,13 @@ else if executable('pt') " For Pt(the platinum searcher) " NOTE: It also supports windows. - call denite#custom#var('file_rec', 'command', + call denite#custom#var('file/rec', 'command', \ ['pt', '--nocolor', '--ignore', '.git', '--hidden', '-g=', '']) endif endif -call denite#custom#alias('source', 'file_rec/git', 'file_rec') -call denite#custom#var('file_rec/git', 'command', +call denite#custom#alias('source', 'file/rec/git', 'file/rec') +call denite#custom#var('file/rec/git', 'command', \ ['git', 'ls-files', '-co', '--exclude-standard']) " FIND and GREP COMMANDS