Remove *.snip regex for snippets on GNU
This commit is contained in:
parent
8890e2a767
commit
2ed4d4b295
6
init.vim
6
init.vim
@ -972,7 +972,11 @@ function! InsertSnip(snip_name)
|
|||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! FzySnip()
|
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
|
endfunction
|
||||||
|
|
||||||
command! -nargs=1 R call InsertSnip(<f-args>)
|
command! -nargs=1 R call InsertSnip(<f-args>)
|
||||||
|
Loading…
Reference in New Issue
Block a user