Comments (8)
This is not related to this specific plugin, but to your setup in general.
cmp has the following configuration options, which can be set per source, and should help you achieve what you want:
https://github.com/hrsh7th/nvim-cmp/blob/8bbaeda725d5db6e4e1be2867a64b43bf547cf06/doc/cmp.txt#L427
https://github.com/hrsh7th/nvim-cmp/blob/8bbaeda725d5db6e4e1be2867a64b43bf547cf06/doc/cmp.txt#L432
I essence, cmp will query completion sources only if the pattern before the cursor matches keyword_pattern and the pattern is at least completion.keyword_length characters.
from cmp-tabnine.
sources = cmp.config.sources({
{ name = 'nvim_lsp' },
{ name = 'luasnip' },
{
name = 'cmp_tabnine',
keyword_length = 0,
keyword_pattern = '*',
},
{ name = 'path' },
{ name = 'buffer' },
}),
Now tabnine just doesn't appear. Am I doing something wrong?
from cmp-tabnine.
you cant use just ''. its not a valid regular expression.
try '.'
from cmp-tabnine.
Yep, that works way better. It still fails at the beginning of the line though, which is one of the most important cases:
(Yes, I've scrolled through all of it, Tabnine isn't in the list)
Any idea on why?
from cmp-tabnine.
I can confirm this does not work. I also tested directly with the tabnine process, and no results are returned when the cursor is on the first column of a new line.
It might be a tabnine bug. Can you try to recreate this using vscode and the tabnine plugin for it?
from cmp-tabnine.
Got some slightly different behaviour on VSCode.
Sometimes it works, sometimes it doesn't:
When it doesn't, and calling Alt+] does nothing. But typing a letter and backspacing makes it work again.
from cmp-tabnine.
I think this is a bug in tabnine.
Maybe try contacting the tabnine team.
from cmp-tabnine.
Sure, will do.
from cmp-tabnine.
Related Issues (20)
- Stop tabnine with a command? HOT 1
- Integrate with official TabNine plugin HOT 1
- Overlapping completion sources HOT 2
- Failed to install tabnine from Git Bash HOT 2
- cmp-tabnine: Cannot find installed TabNine. Please run install.sh HOT 2
- Auto-imports on Tabnine completions HOT 1
- Termux build HOT 1
- Latest TabNine binary doesnt have executable permissions HOT 2
- Tabnine sorting HOT 2
- Problem with multi-line completion preview not receiving all lines or cutting it off HOT 5
- entry.completion_item.data.detail always returns empty value HOT 2
- Cannot do the initial setup with Lazy.nvim HOT 1
- Lazy plugin manager HOT 5
- Tabnine completion items move to the right in nvim-cmp HOT 1
- Issue on startup HOT 2
- Lazynvim error HOT 2
- Insert value into documentation HOT 3
- contains byte that does not start any UTF-8 character HOT 4
- Error cmp-tabnine with Lazy.nvim HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cmp-tabnine.