" -- gorename command! -nargs=? -complete=customlist,go#rename#Complete GoRename call go#rename#Rename(0, ) " -- guru command! -nargs=* -complete=customlist,go#package#Complete GoGuruScope call go#guru#Scope() command! -range=% GoImplements call go#implements#Implements() command! -range=% GoPointsTo call go#guru#PointsTo() command! -range=% GoWhicherrs call go#guru#Whicherrs() command! -range=% GoCallees call go#guru#Callees() command! -range=% GoDescribe call go#guru#Describe() command! -range=% GoCallers call go#guru#Callers() command! -range=% GoCallstack call go#guru#Callstack() command! -range=% GoFreevars call go#guru#Freevars() command! -range=% GoChannelPeers call go#guru#ChannelPeers() command! -range=% GoReferrers call go#referrers#Referrers() command! -range=0 GoSameIds call go#guru#SameIds(1) command! -range=0 GoSameIdsClear call go#guru#ClearSameIds() command! -range=0 GoSameIdsToggle call go#guru#ToggleSameIds() command! -range=0 GoSameIdsAutoToggle call go#guru#AutoToggleSameIds() " -- tags command! -nargs=* -range GoAddTags call go#tags#Add(, , , ) command! -nargs=* -range GoRemoveTags call go#tags#Remove(, , , ) " -- mod command! -nargs=0 -range GoModFmt call go#mod#Format() " -- tool command! -nargs=* -complete=customlist,go#tool#ValidFiles GoFiles echo go#tool#Files() command! -nargs=0 GoDeps echo go#tool#Deps() command! -nargs=0 GoInfo call go#tool#Info(1) command! -nargs=0 GoAutoTypeInfoToggle call go#complete#ToggleAutoTypeInfo() " -- cmd command! -nargs=* -bang GoBuild call go#cmd#Build(0,) command! -nargs=? -bang GoBuildTags call go#cmd#BuildTags(0, ) command! -nargs=* -bang GoGenerate call go#cmd#Generate(0,) command! -nargs=* -bang -complete=file GoRun call go#cmd#Run(0,) command! -nargs=* -bang GoInstall call go#cmd#Install(0, ) " -- test command! -nargs=* -bang GoTest call go#test#Test(0, 0, ) command! -nargs=* -bang GoTestFunc call go#test#Func(0, ) command! -nargs=* -bang GoTestCompile call go#test#Test(0, 1, ) " -- cover command! -nargs=* -bang GoCoverage call go#coverage#Buffer(0, ) command! -nargs=* -bang GoCoverageClear call go#coverage#Clear() command! -nargs=* -bang GoCoverageToggle call go#coverage#BufferToggle(0, ) command! -nargs=* -bang GoCoverageBrowser call go#coverage#Browser(0, ) " -- play command! -nargs=0 -range=% GoPlay call go#play#Share(, , ) " -- def command! -nargs=* -range GoDef :call go#def#Jump('', 0) command! -nargs=* -range GoDefType :call go#def#Jump('', 1) command! -nargs=? GoDefPop :call go#def#StackPop() command! -nargs=? GoDefStack :call go#def#Stack() command! -nargs=? GoDefStackClear :call go#def#StackClear() " -- doc command! -nargs=* -range -complete=customlist,go#package#Complete GoDoc call go#doc#Open('new', 'split', ) command! -nargs=* -range -complete=customlist,go#package#Complete GoDocBrowser call go#doc#OpenBrowser() " -- fmt command! -nargs=0 GoFmt call go#fmt#Format(-1) command! -nargs=0 GoFmtAutoSaveToggle call go#fmt#ToggleFmtAutoSave() command! -nargs=0 GoImports call go#fmt#Format(1) " -- asmfmt command! -nargs=0 GoAsmFmtAutoSaveToggle call go#asmfmt#ToggleAsmFmtAutoSave() " -- import command! -nargs=? -complete=customlist,go#package#Complete GoDrop call go#import#SwitchImport(0, '', , '') command! -nargs=1 -bang -complete=customlist,go#package#Complete GoImport call go#import#SwitchImport(1, '', , '') command! -nargs=* -bang -complete=customlist,go#package#Complete GoImportAs call go#import#SwitchImport(1, , '') " -- linters command! -nargs=* -bang GoMetaLinter call go#lint#Gometa(0, 0, ) command! -nargs=0 GoMetaLinterAutoSaveToggle call go#lint#ToggleMetaLinterAutoSave() command! -nargs=* -bang GoLint call go#lint#Golint(0, ) command! -nargs=* -bang GoVet call go#lint#Vet(0, ) command! -nargs=* -bang -complete=customlist,go#package#Complete GoErrCheck call go#lint#Errcheck(0, ) " -- alternate command! -bang GoAlternate call go#alternate#Switch(0, '') " -- decls command! -nargs=? -complete=file GoDecls call go#decls#Decls(0, ) command! -nargs=? -complete=dir GoDeclsDir call go#decls#Decls(1, ) " -- impl command! -nargs=* -complete=customlist,go#impl#Complete GoImpl call go#impl#Impl() " -- template command! -nargs=0 GoTemplateAutoCreateToggle call go#template#ToggleAutoCreate() " -- keyify command! -nargs=0 GoKeyify call go#keyify#Keyify() " -- fillstruct command! -nargs=0 GoFillStruct call go#fillstruct#FillStruct() " -- debug if !exists(':GoDebugStart') command! -nargs=* -complete=customlist,go#package#Complete GoDebugStart call go#debug#Start('debug', ) command! -nargs=* -complete=customlist,go#package#Complete GoDebugTest call go#debug#Start('test', ) command! -nargs=1 GoDebugAttach call go#debug#Start('attach', ) command! -nargs=? GoDebugBreakpoint call go#debug#Breakpoint() endif " -- issue command! -nargs=0 GoReportGitHubIssue call go#issue#New() " -- iferr command! -nargs=0 GoIfErr call go#iferr#Generate() " -- lsp command! -nargs=+ -complete=dir GoAddWorkspace call go#lsp#AddWorkspaceDirectory() command! -nargs=0 GoLSPDebugBrowser call go#lsp#DebugBrowser() command! -nargs=* -bang GoDiagnostics call go#lint#Diagnostics(0, ) " -- term command! GoToggleTermCloseOnExit call go#term#ToggleCloseOnExit() " vim: sw=2 ts=2 et