Skip to content
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

Overlapping with tabnine's prompt #30

Closed
ayamir opened this issue Jun 21, 2021 · 3 comments
Closed

Overlapping with tabnine's prompt #30

ayamir opened this issue Jun 21, 2021 · 3 comments

Comments

@ayamir
Copy link

ayamir commented Jun 21, 2021

image
You know tabnine's completion is instantly, so its prompt overlaps at it.

@ayamir
Copy link
Author

ayamir commented Jun 21, 2021

Sorry, I need to configure tabnine. Following is how I fix it:

-- Compe setup
require'compe'.setup {
enabled = true;
autocomplete = true;
debug = false;
min_length = 1;
preselect = 'enable';
throttle_time = 80;
source_timeout = 200;
resolve_timeout = 800;
incomplete_delay = 400;
max_abbr_width = 100;
max_kind_width = 100;
max_menu_width = 100;
documentation = true;

source = {
	path = true;
	buffer = true;
	calc = true;
	spell = true;
	tags =  true;

	nvim_lsp = true;
	nvim_lua = true;
	treesitter = true;
	vsnip = true;
	tabnine = {
		max_line = 1000;
		max_num_results = 6;
		priority = 5000;
		show_prediction_strength = true;
		sort = false;
		ignore_pattern = '[(]';
		};
	};
}

@ayamir ayamir closed this as completed Jun 21, 2021
@ray-x
Copy link
Owner

ray-x commented Jun 21, 2021

Is it because you setup priority = 5000;
tabnine is slow and that is maybe why it appears after the signature popup.

Btw, I add zindex to the lspsignature. Not sure if it helps.

@ayamir
Copy link
Author

ayamir commented Jun 23, 2021

Is it because you setup priority = 5000;
tabnine is slow and that is maybe why it appears after the signature popup.

Btw, I add zindex to the lspsignature. Not sure if it helps.

ignore_pattern = '[(]';
this line helps in fact.
tabnine appears after the signature popup: yes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants