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.
This commit is contained in:
Junegunn Choi 2016-11-10 12:03:37 +09:00
parent 54683aa2c7
commit 46ddb4af2d
No known key found for this signature in database
GPG key ID: 254BC280FEF9C627

View file

@ -251,7 +251,7 @@ function! plug#end()
for [cmd, names] in items(lod.cmd) for [cmd, names] in items(lod.cmd)
execute printf( execute printf(
\ 'command! -nargs=* -range -bang %s call s:lod_cmd(%s, "<bang>", <line1>, <line2>, <q-args>, %s)', \ 'command! -nargs=* -range -bang -complete=file %s call s:lod_cmd(%s, "<bang>", <line1>, <line2>, <q-args>, %s)',
\ cmd, string(cmd), string(names)) \ cmd, string(cmd), string(names))
endfor endfor