Remove *.snip regex for snippets on GNU

This commit is contained in:
Jonas Ryssel 2023-02-03 09:40:18 +01:00
parent 8890e2a767
commit 2ed4d4b295

View File

@ -972,7 +972,11 @@ function! InsertSnip(snip_name)
endfunction
function! FzySnip()
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(<f-args>)