mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-03 11:50:05 +08:00
17 lines
507 B
VimL
Vendored
17 lines
507 B
VimL
Vendored
let s:SCHEME = gina#command#scheme(expand('<sfile>'))
|
|
|
|
|
|
function! gina#command#lcd#call(range, args, mods) abort
|
|
let args = a:args.clone()
|
|
call args.set('--local', 1)
|
|
call gina#command#cd#call(a:range, args, a:mods)
|
|
endfunction
|
|
|
|
function! gina#command#lcd#complete(arglead, cmdline, cursorpos) abort
|
|
let args = gina#core#args#new(matchstr(a:cmdline, '^.*\ze .*'))
|
|
if empty(args.get(1))
|
|
return gina#complete#filename#directory(a:arglead, a:cmdline, a:cursorpos)
|
|
endif
|
|
return []
|
|
endfunction
|