diff --git a/init.vim b/init.vim index e589b4e..85c41e1 100644 --- a/init.vim +++ b/init.vim @@ -972,7 +972,11 @@ function! InsertSnip(snip_name) endfunction function! FzySnip() - call picker#File('find -follow -type f -name "*.snip"', 'R', {'cwd': stdpath('config') . '/snippets'}) + if $USER =~ "^jry$" && $HOSTNAME =~ "gnu" + call picker#File('find -follow -type f', 'R', {'cwd': stdpath('config') . '/snippets'}) + else + call picker#File('find -follow -type f -name "*.snip"', 'R', {'cwd': stdpath('config') . '/snippets'}) + endif endfunction command! -nargs=1 R call InsertSnip()