From 46ddb4af2d01b98b9411556d2aa72831b49ba5cb Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Thu, 10 Nov 2016 12:03:37 +0900 Subject: [PATCH] Set the default completion type of proxy command to "file" Though we do not know the completion type of a command until the command is loaded, setting it to file seems like the best thing we can do. --- plug.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plug.vim b/plug.vim index 7945e8d..b0f5bc2 100644 --- a/plug.vim +++ b/plug.vim @@ -251,7 +251,7 @@ function! plug#end() for [cmd, names] in items(lod.cmd) execute printf( - \ 'command! -nargs=* -range -bang %s call s:lod_cmd(%s, "", , , , %s)', + \ 'command! -nargs=* -range -bang -complete=file %s call s:lod_cmd(%s, "", , , , %s)', \ cmd, string(cmd), string(names)) endfor