Closed Shougo closed 5 years ago
Testing
Out of the box not seeing solargraph data.
Trying to run :TabNine::sem
in the command prompt gives me: E492: Not an editor command: TabNine::sem
Please try input the text on the buffer instead.
Please read it carefully.
It does not say type TabNine::sem
in the command line.
Oh... that works! Sorry, I didn't realize it meant to literally type it in the buffer.
Thank you!
:-)
I tested this on my machine too. This fixes the issue
nvim 0.3.1, latest tabnine, latest plugin versions
Huh why wouldn't the combination of min_pattern_length and [^\w\s]
not already detect TabNine::? Since : matches [^\w\s]
and any letter would trigger min_pattern_length. @Shougo
Because, min_pattern_length
is 1.
For example, TabNine::version|
matches |
position.
It is 0 length match completion.
If min_pattern_length
is 1, it will be ignored.
input_pattern
ignores min_pattern_length
. So it works.
@tbodt Ping.
Why is TabNine::version|
a 0 length match?
match length is calculated by tabnine's result.
If TabNine::version
matches TabNine::|version
position, deoplete-tabnine works without the change.
The special command seems matches at the end of input.
Please ask it for tabnine's author.
It is tabnine's feature.
I don't really understand the min_pattern_length and input_pattern settings. All I know is TabNine is intended to be refreshed on every keystroke; what settings are needed for that?
I don't really understand the min_pattern_length and input_pattern settings. All I know is TabNine is intended to be refreshed on every keystroke; what settings are needed for that?
If so, you should set min_pattern_length
is 0.
min_pattern_length
is minimum matched length to complete position.
If it is 1, the end of input matches are ignored.
But I think min_pattern_length
should be customized by user.
I have customized min_pattern_length
to 2.
TabNine::version
is special case. So min_pattern_length
should be ignored by input_pattern
.
OK, I'll merge this. I'll also test with min_pattern_length = 0 and see if that's better.
Thank you!
Fix
TabNine::sem
problem after protocol 1.0 feature is enabled.