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

Default rank is to high #5

Open
mattaschmann opened this issue Nov 9, 2018 · 7 comments
Open

Default rank is to high #5

mattaschmann opened this issue Nov 9, 2018 · 7 comments

Comments

@mattaschmann
Copy link

self.rank = 1000 is listed in the examples:

	class Source(Base):
	    def __init__(self, vim):
	        super().__init__(vim)
	        self.name = 'async'
	        self.mark = '[async]'
	        self.rank = 1000
	        self._count = 0

That is what is used for this plugin. However, the default is 100:

					*deoplete-source-attribute-rank*
rank		(Integer)			(Optional)
		Source priority.  Higher values imply higher priority.
		Note: It is high priority than match position.

		Default: 100

This puts tabnine above everything else. You can override this with:

call deoplete#custom#source('tabnine', 'rank', 50)

However, it would probably be preferable to use the default sort, as having tabnine above everything else, especially as it creates a lot of suggestions, can get cumbersome.

@tbodt
Copy link
Owner

tbodt commented Nov 9, 2018

I set the rank that high because it got annoying to be all the way below the LanguageClient suggestions. I'm open to discussion about what the "right" default rank would be.

@mattaschmann
Copy link
Author

That makes sense, and like I mentioned, it's customizable. I found that having 8-10 tabnine suggestions above my ternJS ones was unusable. Maybe all you need is a helpfile that mentions how to customize the sort?

@JoveYu
Copy link

JoveYu commented Jun 12, 2019

when i use deoplete-jedi for python deoplete-go for go, the completion is much better than tabnine

@syphar
Copy link

syphar commented Nov 27, 2019

I also stumbled onto this problem here, though I'm actually not sure about the solution.

Especially in combination with the quite good deoplete-jedi I would want to see both.

Documentation on customization here could definitely help.

What I'll try and feels right is

Perhaps a lower rank

@dubst3pp4
Copy link

I guess there is still no solution? Which Vim client are you using for Tabnine in 2023? (although deoplete-tabnine really works great!)

@Shougo
Copy link
Contributor

Shougo commented Jun 2, 2023

You can use ddc.vim instead.

https://github.com/LumaKernel/ddc-tabnine

@tzachar
Copy link
Contributor

tzachar commented Jun 2, 2023

Cmp-tabnine

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

7 participants