1
0
Fork 0
mirror of synced 2024-11-16 14:05:34 -05:00
ultimate-vim/sources_non_forked/vim-go/ftplugin/go/commands.vim

127 lines
5.5 KiB
VimL
Raw Normal View History

2016-05-14 07:57:54 -04:00
" -- gorename
command! -nargs=? -complete=customlist,go#rename#Complete GoRename call go#rename#Rename(<bang>0, <f-args>)
2014-10-31 17:30:24 -04:00
2016-05-14 07:57:54 -04:00
" -- guru
command! -nargs=* -complete=customlist,go#package#Complete GoGuruScope call go#guru#Scope(<f-args>)
command! -range=% GoImplements call go#guru#Implements(<count>)
2018-06-14 06:31:12 -04:00
command! -range=% GoPointsTo call go#guru#PointsTo(<count>)
2016-08-02 08:48:32 -04:00
command! -range=% GoWhicherrs call go#guru#Whicherrs(<count>)
2016-05-14 07:57:54 -04:00
command! -range=% GoCallees call go#guru#Callees(<count>)
command! -range=% GoDescribe call go#guru#Describe(<count>)
command! -range=% GoCallers call go#guru#Callers(<count>)
command! -range=% GoCallstack call go#guru#Callstack(<count>)
command! -range=% GoFreevars call go#guru#Freevars(<count>)
command! -range=% GoChannelPeers call go#guru#ChannelPeers(<count>)
command! -range=% GoReferrers call go#guru#Referrers(<count>)
2016-08-02 08:48:32 -04:00
2018-09-24 20:40:17 -04:00
command! -range=0 GoSameIds call go#guru#SameIds(1)
2016-07-16 14:30:35 -04:00
command! -range=0 GoSameIdsClear call go#guru#ClearSameIds()
2016-12-27 09:46:49 -05:00
command! -range=0 GoSameIdsToggle call go#guru#ToggleSameIds()
2018-12-17 06:28:27 -05:00
command! -range=0 GoSameIdsAutoToggle call go#guru#AutoToggleSameIds()
2016-05-14 07:57:54 -04:00
2017-03-07 12:04:28 -05:00
" -- tags
command! -nargs=* -range GoAddTags call go#tags#Add(<line1>, <line2>, <count>, <f-args>)
command! -nargs=* -range GoRemoveTags call go#tags#Remove(<line1>, <line2>, <count>, <f-args>)
2018-09-24 20:40:17 -04:00
" -- mod
command! -nargs=0 -range GoModFmt call go#mod#Format()
2016-05-14 07:57:54 -04:00
" -- tool
2017-09-02 06:43:18 -04:00
command! -nargs=* -complete=customlist,go#tool#ValidFiles GoFiles echo go#tool#Files(<f-args>)
2014-10-31 17:30:24 -04:00
command! -nargs=0 GoDeps echo go#tool#Deps()
2018-09-24 20:40:17 -04:00
command! -nargs=0 GoInfo call go#tool#Info(1)
2016-08-02 08:48:32 -04:00
command! -nargs=0 GoAutoTypeInfoToggle call go#complete#ToggleAutoTypeInfo()
2014-10-31 17:30:24 -04:00
2016-05-14 07:57:54 -04:00
" -- cmd
2015-01-18 07:58:28 -05:00
command! -nargs=* -bang GoBuild call go#cmd#Build(<bang>0,<f-args>)
2017-03-14 11:16:07 -04:00
command! -nargs=? -bang GoBuildTags call go#cmd#BuildTags(<bang>0, <f-args>)
2015-07-13 06:22:46 -04:00
command! -nargs=* -bang GoGenerate call go#cmd#Generate(<bang>0,<f-args>)
2016-03-14 06:04:57 -04:00
command! -nargs=* -bang -complete=file GoRun call go#cmd#Run(<bang>0,<f-args>)
2015-07-13 06:22:46 -04:00
command! -nargs=* -bang GoInstall call go#cmd#Install(<bang>0, <f-args>)
2017-07-06 08:57:35 -04:00
" -- test
command! -nargs=* -bang GoTest call go#test#Test(<bang>0, 0, <f-args>)
command! -nargs=* -bang GoTestFunc call go#test#Func(<bang>0, <f-args>)
command! -nargs=* -bang GoTestCompile call go#test#Test(<bang>0, 1, <f-args>)
2016-04-12 04:31:09 -04:00
" -- cover
command! -nargs=* -bang GoCoverage call go#coverage#Buffer(<bang>0, <f-args>)
2016-05-14 07:57:54 -04:00
command! -nargs=* -bang GoCoverageClear call go#coverage#Clear()
command! -nargs=* -bang GoCoverageToggle call go#coverage#BufferToggle(<bang>0, <f-args>)
2016-04-12 04:31:09 -04:00
command! -nargs=* -bang GoCoverageBrowser call go#coverage#Browser(<bang>0, <f-args>)
2014-10-31 17:30:24 -04:00
" -- play
command! -nargs=0 -range=% GoPlay call go#play#Share(<count>, <line1>, <line2>)
" -- def
2019-03-27 11:08:56 -04:00
command! -nargs=* -range GoDef :call go#def#Jump('', 0)
command! -nargs=* -range GoDefType :call go#def#Jump('', 1)
2016-04-12 04:31:09 -04:00
command! -nargs=? GoDefPop :call go#def#StackPop(<f-args>)
2016-05-14 07:57:54 -04:00
command! -nargs=? GoDefStack :call go#def#Stack(<f-args>)
command! -nargs=? GoDefStackClear :call go#def#StackClear(<f-args>)
2014-10-31 17:30:24 -04:00
" -- doc
2015-01-18 07:58:28 -05:00
command! -nargs=* -range -complete=customlist,go#package#Complete GoDoc call go#doc#Open('new', 'split', <f-args>)
2014-10-31 17:30:24 -04:00
command! -nargs=* -range -complete=customlist,go#package#Complete GoDocBrowser call go#doc#OpenBrowser(<f-args>)
" -- fmt
command! -nargs=0 GoFmt call go#fmt#Format(-1)
2016-08-02 08:48:32 -04:00
command! -nargs=0 GoFmtAutoSaveToggle call go#fmt#ToggleFmtAutoSave()
2014-10-31 17:30:24 -04:00
command! -nargs=0 GoImports call go#fmt#Format(1)
2016-08-02 08:48:32 -04:00
" -- asmfmt
command! -nargs=0 GoAsmFmtAutoSaveToggle call go#asmfmt#ToggleAsmFmtAutoSave()
2014-10-31 17:30:24 -04:00
" -- import
2015-12-08 08:20:04 -05:00
command! -nargs=? -complete=customlist,go#package#Complete GoDrop call go#import#SwitchImport(0, '', <f-args>, '')
command! -nargs=1 -bang -complete=customlist,go#package#Complete GoImport call go#import#SwitchImport(1, '', <f-args>, '<bang>')
command! -nargs=* -bang -complete=customlist,go#package#Complete GoImportAs call go#import#SwitchImport(1, <f-args>, '<bang>')
" -- linters
2018-12-17 06:28:27 -05:00
command! -nargs=* -bang GoMetaLinter call go#lint#Gometa(<bang>0, 0, <f-args>)
2016-10-02 07:37:21 -04:00
command! -nargs=0 GoMetaLinterAutoSaveToggle call go#lint#ToggleMetaLinterAutoSave()
2018-12-17 06:28:27 -05:00
command! -nargs=* -bang GoLint call go#lint#Golint(<bang>0, <f-args>)
2015-12-08 08:20:04 -05:00
command! -nargs=* -bang GoVet call go#lint#Vet(<bang>0, <f-args>)
2018-12-17 06:28:27 -05:00
command! -nargs=* -bang -complete=customlist,go#package#Complete GoErrCheck call go#lint#Errcheck(<bang>0, <f-args>)
2014-10-31 17:30:24 -04:00
2016-02-20 08:13:10 -05:00
" -- alternate
command! -bang GoAlternate call go#alternate#Switch(<bang>0, '')
" -- decls
command! -nargs=? -complete=file GoDecls call go#decls#Decls(0, <q-args>)
command! -nargs=? -complete=dir GoDeclsDir call go#decls#Decls(1, <q-args>)
2016-03-20 14:01:44 -04:00
2016-05-14 07:57:54 -04:00
" -- impl
command! -nargs=* -complete=customlist,go#impl#Complete GoImpl call go#impl#Impl(<f-args>)
2016-05-14 07:57:54 -04:00
2016-08-02 08:48:32 -04:00
" -- template
command! -nargs=0 GoTemplateAutoCreateToggle call go#template#ToggleAutoCreate()
2017-05-26 05:30:32 -04:00
" -- keyify
command! -nargs=0 GoKeyify call go#keyify#Keyify()
" -- fillstruct
command! -nargs=0 GoFillStruct call go#fillstruct#FillStruct()
2018-03-31 10:56:26 -04:00
" -- debug
if !exists(':GoDebugStart')
command! -nargs=* -complete=customlist,go#package#Complete GoDebugStart call go#debug#Start(0, <f-args>)
command! -nargs=* -complete=customlist,go#package#Complete GoDebugTest call go#debug#Start(1, <f-args>)
command! -nargs=? GoDebugBreakpoint call go#debug#Breakpoint(<f-args>)
endif
2018-06-14 06:31:12 -04:00
" -- issue
command! -nargs=0 GoReportGitHubIssue call go#issue#New()
2018-07-04 06:53:25 -04:00
" -- iferr
command! -nargs=0 GoIfErr call go#iferr#Generate()
2019-08-22 11:36:17 -04:00
" -- lsp
command! -nargs=+ -complete=dir GoAddWorkspace call go#lsp#AddWorkspaceDirectory(<f-args>)
command! -nargs=0 GoLSPDebugBrowser call go#lsp#DebugBrowser()
" -- term
command! GoToggleTermCloseOnExit call go#term#ToggleCloseOnExit()
2016-06-26 07:12:36 -04:00
" vim: sw=2 ts=2 et