From 2ed4d4b295795b94d3bb0ba09588e30238874cd2 Mon Sep 17 00:00:00 2001 From: Jonas Ryssel Date: Fri, 3 Feb 2023 09:40:18 +0100 Subject: [PATCH] Remove *.snip regex for snippets on GNU --- init.vim | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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()