mirror of
				https://github.com/amix/vimrc
				synced 2025-10-31 14:43:35 +08:00 
			
		
		
		
	Updated plugins
This commit is contained in:
		| @ -14,7 +14,7 @@ command! -range=% GoFreevars call go#guru#Freevars(<count>) | ||||
| command! -range=% GoChannelPeers call go#guru#ChannelPeers(<count>) | ||||
| command! -range=% GoReferrers call go#guru#Referrers(<count>) | ||||
|  | ||||
| command! -range=0 GoSameIds call go#guru#SameIds() | ||||
| 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#AutoToogleSameIds() | ||||
| @ -23,10 +23,13 @@ command! -range=0 GoSameIdsAutoToggle call go#guru#AutoToogleSameIds() | ||||
| 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>) | ||||
|  | ||||
| " -- mod | ||||
| command! -nargs=0 -range GoModFmt call go#mod#Format() | ||||
|  | ||||
| " -- tool | ||||
| command! -nargs=* -complete=customlist,go#tool#ValidFiles GoFiles echo go#tool#Files(<f-args>) | ||||
| command! -nargs=0 GoDeps echo go#tool#Deps() | ||||
| command! -nargs=0 GoInfo call go#tool#Info() | ||||
| command! -nargs=0 GoInfo call go#tool#Info(1) | ||||
| command! -nargs=0 GoAutoTypeInfoToggle call go#complete#ToggleAutoTypeInfo() | ||||
|  | ||||
| " -- cmd | ||||
|  | ||||
| @ -31,7 +31,7 @@ nnoremap <silent> <Plug>(go-coverage-browser) :<C-u>call go#coverage#Browser(!g: | ||||
|  | ||||
| nnoremap <silent> <Plug>(go-files) :<C-u>call go#tool#Files()<CR> | ||||
| nnoremap <silent> <Plug>(go-deps) :<C-u>call go#tool#Deps()<CR> | ||||
| nnoremap <silent> <Plug>(go-info) :<C-u>call go#tool#Info()<CR> | ||||
| nnoremap <silent> <Plug>(go-info) :<C-u>call go#tool#Info(1)<CR> | ||||
| nnoremap <silent> <Plug>(go-import) :<C-u>call go#import#SwitchImport(1, '', expand('<cword>'), '')<CR> | ||||
| nnoremap <silent> <Plug>(go-imports) :<C-u>call go#fmt#Format(1)<CR> | ||||
|  | ||||
| @ -43,13 +43,16 @@ nnoremap <silent> <Plug>(go-callstack) :<C-u>call go#guru#Callstack(-1)<CR> | ||||
| xnoremap <silent> <Plug>(go-freevars) :<C-u>call go#guru#Freevars(0)<CR> | ||||
| nnoremap <silent> <Plug>(go-channelpeers) :<C-u>call go#guru#ChannelPeers(-1)<CR> | ||||
| nnoremap <silent> <Plug>(go-referrers) :<C-u>call go#guru#Referrers(-1)<CR> | ||||
| nnoremap <silent> <Plug>(go-sameids) :<C-u>call go#guru#SameIds()<CR> | ||||
| nnoremap <silent> <Plug>(go-sameids) :<C-u>call go#guru#SameIds(1)<CR> | ||||
| nnoremap <silent> <Plug>(go-pointsto) :<C-u>call go#guru#PointsTo(-1)<CR> | ||||
| nnoremap <silent> <Plug>(go-whicherrs) :<C-u>call go#guru#Whicherrs(-1)<CR> | ||||
| nnoremap <silent> <Plug>(go-sameids-toggle) :<C-u>call go#guru#ToggleSameIds()<CR> | ||||
|  | ||||
| nnoremap <silent> <Plug>(go-rename) :<C-u>call go#rename#Rename(!g:go_jump_to_error)<CR> | ||||
|  | ||||
| nnoremap <silent> <Plug>(go-decls) :<C-u>call go#decls#Decls(0, '')<CR> | ||||
| nnoremap <silent> <Plug>(go-decls-dir) :<C-u>call go#decls#Decls(1, '')<CR> | ||||
|  | ||||
| nnoremap <silent> <Plug>(go-def) :<C-u>call go#def#Jump('')<CR> | ||||
| nnoremap <silent> <Plug>(go-def-vertical) :<C-u>call go#def#Jump("vsplit")<CR> | ||||
| nnoremap <silent> <Plug>(go-def-split) :<C-u>call go#def#Jump("split")<CR> | ||||
|  | ||||
							
								
								
									
										15
									
								
								sources_non_forked/vim-go/ftplugin/gomod.vim
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										15
									
								
								sources_non_forked/vim-go/ftplugin/gomod.vim
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,15 @@ | ||||
| " gomod.vim: Vim filetype plugin for Go assembler. | ||||
|  | ||||
| if exists("b:did_ftplugin") | ||||
|   finish | ||||
| endif | ||||
| let b:did_ftplugin = 1 | ||||
|  | ||||
| let b:undo_ftplugin = "setl fo< com< cms<" | ||||
|  | ||||
| setlocal formatoptions-=t | ||||
|  | ||||
| setlocal comments=s1:/*,mb:*,ex:*/,:// | ||||
| setlocal commentstring=//\ %s | ||||
|  | ||||
| " vim: sw=2 ts=2 et | ||||
							
								
								
									
										3
									
								
								sources_non_forked/vim-go/ftplugin/gomod/commands.vim
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								sources_non_forked/vim-go/ftplugin/gomod/commands.vim
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,3 @@ | ||||
| command! -nargs=0 -range GoModFmt call go#mod#Format() | ||||
|  | ||||
| command! -nargs=0 GoModFmtAutoSaveToggle call go#mod#ToggleModFmtAutoSave() | ||||
							
								
								
									
										1
									
								
								sources_non_forked/vim-go/ftplugin/gomod/mappings.vim
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								sources_non_forked/vim-go/ftplugin/gomod/mappings.vim
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1 @@ | ||||
| nnoremap <silent> <Plug>(go-mod-fmt) :<C-u>call go#mod#Format()<CR> | ||||
		Reference in New Issue
	
	Block a user
	 Amir Salihefendic
					Amir Salihefendic