Closed yous closed 3 years ago
Related? Is there a way to have tabnine start suggesting only after tab is pressed, rather than always displaying?
@dmd Check out g:ycm_auto_trigger
.
Thanks for the pointer to s:AllowedToCompleteInBuffer()
; removing the return 1
from the top of that function apparently makes the filetype blacklist just work, I don't know why that was added in the first place, and the commit message (9b868b9c178c820539fe7cbb50c87d1121599f2a) isn't helpful.
YCM has quite many global options, and you can see them on
doc/youcompleteme.txt
,:help youcompleteme-options
. Of course many of them are not relevant to or can't be applied to TabNine, but yet the plugin is a fork of YCM, and I think some of them can be handled by plugin itself.For example:
It seems that
g:ycm_filetype_blacklist
andg:ycm_filetype_whitelist
can be handled by fixings:AllowedToCompleteInBuffer()
, butg:ycm_min_num_of_chars_for_completion
is read by ycmd.