TommyX12 / company-tabnine

A company-mode backend for TabNine, the all-language autocompleter: https://tabnine.com/
MIT License
685 stars 52 forks source link

Type TabNine::sem to enable semantic completion on JavaScript #54

Open MinallW opened 3 years ago

MinallW commented 3 years ago

Fedora 34 XFCE, npm 6.14.13 node v14.17.0 Emacs 27 Company and company-tabnine Have installed typescript-language-server globally and ran it with: typescript-language-server --stdio Also, the message on the echo area is too long to read, and even though the server is running, same message appears...

TommyX12 commented 3 years ago

This is a feature of TabNine. As the message says, if you want semantic completion, type TabNine::sem. If not, you can type TabNine::no_sem to suppress this.

leothelocust commented 3 years ago

Because the line was too long to actually read, it took me a bit to grok that you literally type TabNine::sem onto the screen (anywhere - comments, etc...). @TommyX12 Is it possible to just add this as a variable that can be set to t or nil?

allancsilva commented 2 years ago

How do I type this message? Tried Alt + X and nothing happened

0xadeeb commented 2 years ago

How do I type this message? Tried Alt + X and nothing happened

Yea even I tried it got nothing, where should I type the message?

TommyX12 commented 2 years ago

@allancsilva @lladeebll This was TabNine's original design; you have to type this as text into anywhere (any open buffer, as if you are writing it out). TabNine will simply detect if you had TabNine::sem in the prefix string that it receives.