-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix #2524: Use own interval to call AutoTypeInfo/AutoSameids #2529
Changes from 8 commits
d064d59
c33809c
02eb439
ddb96ce
8d7474c
987fdae
3e0fedd
93ac77b
bb1d460
3b576be
1b6a7dd
1a5ff26
4f1d11d
d9bfec3
7baedaa
8082ef3
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -74,9 +74,8 @@ if get(g:, "go_textobj_enabled", 1) | |
xnoremap <buffer> <silent> [[ :<c-u>call go#textobj#FunctionJump('v', 'prev')<cr> | ||
endif | ||
|
||
if go#config#AutoTypeInfo() || go#config#AutoSameids() | ||
let &l:updatetime= get(g:, "go_updatetime", 800) | ||
endif | ||
" Set up autocmd to call :GoSameIds / :GoInfo automatically | ||
call go#auto#update_autocmd() | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Given that there's a CursorHold autocmd that calls There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not exactly because |
||
|
||
" Autocommands | ||
" ============================================================================ | ||
|
@@ -95,8 +94,8 @@ augroup vim-go-buffer | |
autocmd BufDelete <buffer> call go#lsp#DidClose(expand('<afile>:p')) | ||
endif | ||
|
||
autocmd CursorHold <buffer> call go#auto#auto_type_info() | ||
autocmd CursorHold <buffer> call go#auto#auto_sameids() | ||
autocmd BufEnter <buffer> call go#auto#timer_restart() | ||
autocmd BufEnter,CursorHold <buffer> call go#auto#update_autocmd() | ||
|
||
" Echo the identifier information when completion is done. Useful to see | ||
" the signature of a function, etc... | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's the value of using a group that's unique to the buffer? Will
augroup vim-go-buffer-auto
suffice?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's right. I tested and recognized
vim-go-suffer-auto
is just enough. Fixed on bb1d460