mirror of
				https://github.com/amix/vimrc
				synced 2025-10-31 14:43:35 +08:00 
			
		
		
		
	Updated plugins
This commit is contained in:
		| @ -25,8 +25,11 @@ setlocal noexpandtab | ||||
|  | ||||
| compiler go | ||||
|  | ||||
| " Set gocode completion | ||||
| " Set autocompletion | ||||
| setlocal omnifunc=go#complete#Complete | ||||
| if !go#util#has_job() | ||||
|   setlocal omnifunc=go#complete#GocodeComplete | ||||
| endif | ||||
|  | ||||
| if get(g:, "go_doc_keywordprg_enabled", 1) | ||||
|   " keywordprg doesn't allow to use vim commands, override it | ||||
| @ -40,8 +43,8 @@ if get(g:, "go_def_mapping_enabled", 1) | ||||
|   nnoremap <buffer> <silent> <C-]> :GoDef<cr> | ||||
|   nnoremap <buffer> <silent> <C-LeftMouse> <LeftMouse>:GoDef<cr> | ||||
|   nnoremap <buffer> <silent> g<LeftMouse> <LeftMouse>:GoDef<cr> | ||||
|   nnoremap <buffer> <silent> <C-w><C-]> :<C-u>call go#def#Jump("split")<CR> | ||||
|   nnoremap <buffer> <silent> <C-w>] :<C-u>call go#def#Jump("split")<CR> | ||||
|   nnoremap <buffer> <silent> <C-w><C-]> :<C-u>call go#def#Jump("split", 0)<CR> | ||||
|   nnoremap <buffer> <silent> <C-w>] :<C-u>call go#def#Jump("split", 0)<CR> | ||||
|   nnoremap <buffer> <silent> <C-t> :<C-U>call go#def#StackPop(v:count1)<cr> | ||||
| endif | ||||
|  | ||||
| @ -79,6 +82,10 @@ endif | ||||
| augroup vim-go-buffer | ||||
|   autocmd! * <buffer> | ||||
|  | ||||
|   " TODO(bc): notify gopls about changes on CursorHold when the buffer is | ||||
|   " modified. | ||||
|   " TODO(bc): notify gopls that the file on disk is correct on BufWritePost | ||||
|  | ||||
|   autocmd CursorHold <buffer> call go#auto#auto_type_info() | ||||
|   autocmd CursorHold <buffer> call go#auto#auto_sameids() | ||||
|  | ||||
|  | ||||
| @ -54,7 +54,8 @@ command! -nargs=* -bang GoCoverageBrowser call go#coverage#Browser(<bang>0, <f-a | ||||
| command! -nargs=0 -range=% GoPlay call go#play#Share(<count>, <line1>, <line2>) | ||||
|  | ||||
| " -- def | ||||
| command! -nargs=* -range GoDef :call go#def#Jump('') | ||||
| 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(<f-args>) | ||||
| command! -nargs=? GoDefStack :call go#def#Stack(<f-args>) | ||||
| command! -nargs=? GoDefStackClear :call go#def#StackClear(<f-args>) | ||||
|  | ||||
| @ -53,10 +53,15 @@ nnoremap <silent> <Plug>(go-rename) :<C-u>call go#rename#Rename(!g:go_jump_to_er | ||||
| 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> | ||||
| nnoremap <silent> <Plug>(go-def-tab) :<C-u>call go#def#Jump("tab")<CR> | ||||
| nnoremap <silent> <Plug>(go-def) :<C-u>call go#def#Jump('', 0)<CR> | ||||
| nnoremap <silent> <Plug>(go-def-vertical) :<C-u>call go#def#Jump("vsplit", 0)<CR> | ||||
| nnoremap <silent> <Plug>(go-def-split) :<C-u>call go#def#Jump("split", 0)<CR> | ||||
| nnoremap <silent> <Plug>(go-def-tab) :<C-u>call go#def#Jump("tab", 0)<CR> | ||||
|  | ||||
| nnoremap <silent> <Plug>(go-def-type) :<C-u>call go#def#Jump('', 1)<CR> | ||||
| nnoremap <silent> <Plug>(go-def-type-vertical) :<C-u>call go#def#Jump("vsplit", 1)<CR> | ||||
| nnoremap <silent> <Plug>(go-def-type-split) :<C-u>call go#def#Jump("split", 1)<CR> | ||||
| nnoremap <silent> <Plug>(go-def-type-tab) :<C-u>call go#def#Jump("tab", 1)<CR> | ||||
|  | ||||
| nnoremap <silent> <Plug>(go-def-pop) :<C-u>call go#def#StackPop()<CR> | ||||
| nnoremap <silent> <Plug>(go-def-stack) :<C-u>call go#def#Stack()<CR> | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Amir Salihefendic
					Amir Salihefendic